メインページ | モジュール | データ構造 | Directories | ファイル一覧 | データフィールド | グローバル | 関連ページ

server-client.c

サーバ・クライアント接続 [詳細]

#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 ()


説明

サーバ・クライアント接続

作者:
Akinobu LEE
日付:
Wed Feb 16 07:18:13 2005
Revision
1.1.1.1

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.
戻り値:
socket descriptor, or -1 if failed to create socket, -2 if failed to bind, or -3 if failed to listen.

server-client.c40 行で定義されています。

参照元 adin_tcpip_standby(), と main_module_loop().

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
戻り値:
the connected socket descriptor.

server-client.c116 行で定義されています。

参照元 adin_tcpip_begin().

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
戻り値:
new socket descriptor, -1 if fails to prepare socket, -2 if fails to connect, -3 if host name is wrong.

server-client.c161 行で定義されています。

int make_connection_unix char *  address  ) 
 

Make a connection to a server using unix domain socket.

引数:
address [in] unix domain socket address (path)
戻り値:
new socket descriptor, -1 if fails to prepare socket, -2 if fails to connect.

server-client.c244 行で定義されています。

int close_socket int  sd  ) 
 

Close socket.

引数:
sd [in] socket descriptor to close
戻り値:
0 on success, -1 on failure.

server-client.c277 行で定義されています。

参照元 adin_tcpip_end(), と main_module_loop().

void cleanup_socket  ) 
 

Clean up socket data at program exit.

server-client.c293 行で定義されています。

参照元 j_error(), と j_exit().


Juliusに対してTue Mar 28 16:06:33 2006に生成されました。  doxygen 1.4.2