![]() |
|
| << Previous | Index | Next >> | |
| | |
int sock_getc( tcp_Socket *s );
Description
Gets the next character from the socket. NOTE: This function blocks. Starting with Dynamic C 7.05, this function is only valid with TCP sockets. Prior to 7.05, this function could not be used on UDP sockets after
sock_recv_init()was called.Parameters
s
- Pointer to a socket.
Return value
- Character read or
-1if error.Library
TCP.LIB (Prior to DC 7.05, this was DCRTCP.LIB)
See Also
Example
do {
if (sock_bytesready( s ) > 0)
putchar( sock_getc( s ));
} while (tcp_tick(s));
| TCP/IP Manual Vol 1 |
<<Previous | Index | Next>> | rabbit.com |