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:
Function Recv (Sock:Longint;Var Addr;AddrLen,Flags:Longint) : Longint;
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:
: Process out-of band data.
: 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.