Julius 4.2
マクロ定義 | 関数
libsent/src/net/rdwt.c

TCP/IPプロセス間通信のための低レベル関数 [詳細]

#include <sent/stddefs.h>
#include <sent/tcpip.h>

ソースコードを見る。

マクロ定義

#define BUFSZ   4096
 Buffer size.

関数

int rd (int fd, char *data, int *len, int maxlen)
 Read a data segment from a network stream.
int wt (int fd, char *data, int len)
 Write a data segment to a network stream.

説明

TCP/IPプロセス間通信のための低レベル関数

作者:
Akinobu LEE
日付:
Wed Feb 16 07:09:25 2005
Revision:
1.4

rdwt.c で定義されています。


関数

int rd ( int  fd,
char *  data,
int *  len,
int  maxlen 
)

Read a data segment from a network stream.

This function will block until the specified length has been received.

引数:
fd[in] file descriptor
data[out] buffer to store the read data
len[out] received length in bytes
maxlen[in] maximum length of data buffer in bytes
戻り値:
received data length in bytes, or -1 on error.

rdwt.c44 行で定義されています。

参照元 adin_tcpip_read(), と adin_tcpip_send_resume().

int wt ( int  fd,
char *  data,
int  len 
)

Write a data segment to a network stream.

引数:
fd[in] file descriptor
data[in] buffer that holds data to write
len[out] received length in bytes
戻り値:
actually written data length in bytes, or -1 on error.

rdwt.c97 行で定義されています。

参照元 adin_tcpip_send_pause(), adin_tcpip_send_resume(), と adin_tcpip_send_terminate().