User manual - PPPライブラリ解説書ver.1.01(2003年2月7日)
DT-900 PPP ライブラリ解説書
- 24 -
[Nread 例]
/* user defined input buffer size */
#define MAX_BUFFER_SIZE 80 ...
int error; /* error code */
int conno; /* connection number */
char buff[MAX_BUFFER_SIZE]; /* data input buffer */
...
/* read data into "buff" from connection number "conno" */
error = Nread(conno, buff, sizeof(buff));
if (error < 0)
<< process error >>