#include <sent/stddefs.h>
#include <sent/tcpip.h>
server-client.cのインクルード依存関係図

関数 | |
| int | ready_as_server (int port_num) |
| int | accept_from (int sd) |
| Wait for a request from client. | |
| int | make_connection (char *hostname, int port_num) |
| int | make_connection_unix (char *address) |
| int | close_socket (int sd) |
| void | cleanup_socket () |
server-client.c で定義されています。
| int ready_as_server | ( | int | port_num | ) |
Prepare as a server creating a socket for client connection.
| port_num | [in] network port to listen. |
server-client.c の 40 行で定義されています。
| int accept_from | ( | int | sd | ) |
Wait for a request from client.
This function blocks until a connection request comes.
| sd | [in] listening server socket descpritor |
server-client.c の 116 行で定義されています。
| int make_connection | ( | char * | hostname, | |
| int | port_num | |||
| ) |
Make a connection to a server.
| hostname | [in] server host (host name or numeric IP address) | |
| port_num | [in] port number |
server-client.c の 161 行で定義されています。
| int make_connection_unix | ( | char * | address | ) |
Make a connection to a server using unix domain socket.
| address | [in] unix domain socket address (path) |
server-client.c の 244 行で定義されています。
| int close_socket | ( | int | sd | ) |
Close socket.
| sd | [in] socket descriptor to close |
server-client.c の 277 行で定義されています。
参照元 adin_tcpip_end()・main_module_loop()・module_disconnect().
| void cleanup_socket | ( | ) |
1.5.0