<< Previous | Index | Next >>

sock_putc


byte sock_putc( tcp_Socket *s, byte c );

Description

A single character is placed on the output buffer. In the case of `\n', the buffer is flushed as described under sock_flushnext. No other ASCII character expansion is performed.

Note that sock_putc uses sock_write, and thus may block if the output buffer is full. See sock_write for more details.

Starting with Dynamic C 7.05, this function is only valid with TCP sockets.

Parameters

s

Pointer to a socket.

c

Character to send.

Return value

The character c.

Library

TCP.LIB (Prior to DC 7.05, this was DCRTCP.LIB)

See also

sock_read, sock_write, sock_fastread, sock_fastwrite, sock_mode


TCP/IP Manual
Vol 1
<<Previous | Index | Next>> rabbit.com