Server side setup and control functions.
More...
Server side setup and control functions.
|
typedef struct ServerType * | erpc_server_t |
| Opaque server object type.
|
|
This function initializes server.
This function initializes server with all components necessary for running server.
- Parameters
-
[in] | transport | Initiated transport. |
[in] | message_buffer_factory | Initiated message buffer factory. |
- Returns
- erpc_server_t Pointer to server structure.
This function de-initializes server.
This function de-initializes server and all components which it own.
- Parameters
-
[in] | server | Pointer to server structure. |
void erpc_add_service_to_server |
( |
erpc_server_t |
server, |
|
|
void * |
service |
|
) |
| |
This function adds service to server.
Services contain implementations of functions called from client to server.
- Parameters
-
[in] | server | Pointer to server structure. |
[in] | service | Service which contains implementations of functions called from client to server. |
void erpc_remove_service_from_server |
( |
erpc_server_t |
server, |
|
|
void * |
service |
|
) |
| |
This function removes service from server.
- Parameters
-
[in] | server | Pointer to server structure. |
[in] | service | Service which contains implementations of functions called from client to server. |
void erpc_server_set_crc |
( |
erpc_server_t |
server, |
|
|
uint32_t |
crcStart |
|
) |
| |
Can be used to set own crcStart number.
For example can be used generated crc from erpcgen which is providing when annotation is used. Accessed can be through 'extern const uint32_t erpc_generated_crc;'
- Parameters
-
[in] | server | Pointer to server structure. |
[in] | crcStart | Set start number for crc. |
This function calls server implementation until it is stopped.
This is blocking method, where server is trying read (and if it is requested also send) message until it is stopped.
- Parameters
-
[in] | server | Pointer to server structure. |
- Returns
- Return one of status from erpc_common.h
This function calls server implementation only once.
This is non-blocking method, where server is trying read (and if it is requested also send) message only once.
- Parameters
-
[in] | server | Pointer to server structure. |
- Returns
- Return one of status from erpc_common.h
This functions should be used when client is calling quit server.
This method sets server from On to OFF. When the server returns from its implementation, erpc_server_deinit() function should be called.
- Parameters
-
[in] | server | Pointer to server structure. |