What do the flags in the send() and recv() mean, when and how can I use them. I allways use 0 as a flag parameter.
Here is the reference:
15 Recv
Declaration
Function Recv (Sock:Longint;Var Addr;AddrLen,Flags:Longint) : Longint;
Description
Recv reads at most Addrlen bytes from socket Sock into address Addr. The socket must be in a connected state. Flags can be one of the following:
1
: Process out-of band data.
4
: Bypass routing, use a direct interface.
??
: Wait for full request or report an error.
The functions returns the number of bytes actually read from the socket, or -1 if a detectable error occurred.