A telnet library (including ipaccess-telnet)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1018 B

.TH telnet_recv 3 LIBTELNET "" "TELNET Library"
\fBtelnet_recv\fP - process received protocol data
\fB#include <libtelnet.h>\fP
.B "void telnet_recv( telnet_t *\fItelnet\fP, const char *\fIbuffer\fP, size_t \fIsize\fP );"
The \fBtelnet_recv\fP function must be called by the host application whenever data is received on the underlying network socket associated with the TELNET connection. The received data is passed in, processed by the \fBlibtelnet\fP library, and events are generated corresponding to the parsed input.
The parameter \fItelnet\fP is a state tracker instance created by a prior call to \fBtelnet_init\fP.
The parameter \fIbuffer\fP is the byte buffer into which received data has been read, usually by a called to \fBrecv\fP.
The parameter \fIsize\fP is the number of bytes in the \fIbuffer\fP parameter, which is the same as the positive return value of \fBrecv\fP.
\fBlibtelnet\fR(3), \fBtelnet_send\fR(3), \fBrecv\fR(3)