![]() |
|
| << Previous | Index | Next >> | |
| | |
int sock_xfastwrite( tcp_Socket *s, long dp, long len );
Description
Writes up to
lenbytes fromdpto sockets. This function writes as many bytes possible to the socket and returns that number of bytes. This function is only valid for TCP sockets. For UDP sockets, useudp_send()orudp_sendto().This function is identical to
sock_fastwrite(), except that an extended memory data source is used.Parameters
s
- Pointer to socket.
dp
- Buffer containing data to be written, as an xmem address obtained from, for example,
xalloc().
len
- Maximum number of bytes to write to the socket.
Return Value
- Number of bytes written or -1 if there was an error.
Library
TCP.LIB
See Also
| TCP/IP Manual Vol 1 |
<<Previous | Index | Next>> | rabbit.com |