Functions | |
AXIS2_EXTERN axis2_socket_t | axutil_network_handler_open_socket (const axutil_env_t *env, char *server, int port) |
AXIS2_EXTERN axis2_socket_t | axutil_network_handler_create_server_socket (const axutil_env_t *env, int port) |
AXIS2_EXTERN axis2_status_t | axutil_network_handler_close_socket (const axutil_env_t *env, axis2_socket_t socket) |
AXIS2_EXTERN axis2_status_t | axutil_network_handler_set_sock_option (const axutil_env_t *env, axis2_socket_t socket, int option, int value) |
AXIS2_EXTERN axis2_socket_t | axutil_network_handler_svr_socket_accept (const axutil_env_t *env, axis2_socket_t socket) |
AXIS2_EXTERN axis2_char_t * | axutil_network_handler_get_svr_ip (const axutil_env_t *env, axis2_socket_t socket) |
AXIS2_EXTERN axis2_char_t * | axutil_network_handler_get_peer_ip (const axutil_env_t *env, axis2_socket_t socket) |
AXIS2_EXTERN axis2_status_t axutil_network_handler_close_socket | ( | const axutil_env_t * | env, | |
axis2_socket_t | socket | |||
) |
closes a socket
opened | socket that need to be closed |
AXIS2_EXTERN axis2_socket_t axutil_network_handler_create_server_socket | ( | const axutil_env_t * | env, | |
int | port | |||
) |
creates a server socket for a given port
port | port of the socket to be bound |
AXIS2_EXTERN axis2_char_t* axutil_network_handler_get_svr_ip | ( | const axutil_env_t * | env, | |
axis2_socket_t | socket | |||
) |
Returns the ip address of the server associated with the socket
socket | valid socket (obtained by accept() or similar call) |
AXIS2_EXTERN axis2_socket_t axutil_network_handler_open_socket | ( | const axutil_env_t * | env, | |
char * | server, | |||
int | port | |||
) |
open a socket for a given server
server | ip address or the fqn of the server | |
port | port of the service |
AXIS2_EXTERN axis2_status_t axutil_network_handler_set_sock_option | ( | const axutil_env_t * | env, | |
axis2_socket_t | socket, | |||
int | option, | |||
int | value | |||
) |
used to set up socket options such as timeouts, non-blocking ..etc
socket | valid socket (obtained by socket() or similar call) | |
option | the name of the option | |
value | Value to be set |
AXIS2_EXTERN axis2_socket_t axutil_network_handler_svr_socket_accept | ( | const axutil_env_t * | env, | |
axis2_socket_t | socket | |||
) |
Accepts remote connections for a server socket
socket | valid server socket (obtained by socket() or similar call) |