Group: Windows Sockets 2 (Winsock) - Library: ws2_32
Winsock: retrieving Web pages using sockets (HTTP, port 80)
Winsock: sending email messages (SMTP, port 25)
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
Winsock: reading email messages (POP3, port 110)
Winsock: connecting to a news server (NNTP, port 119)
A client for testing non-blocking Winsock server
int send(
SOCKET s,
const char* buf,
int len,
int flags
);
DECLARE INTEGER send IN ws2_32;
INTEGER s,;
STRING @ buf,;
INTEGER buflen,;
INTEGER flags
s [in] Descriptor identifying a connected socket.
buf [in] Buffer containing the data to be transmitted.
len [in] Length of the data in buf, in bytes
flags [in] Indicator specifying the way in which the call is made.
If no error occurs, send returns the total number of bytes sent, which can be less than the number indicated by len.