Function silc_packet_receive
SYNOPSIS
int silc_packet_receive(SilcSocketConnection sock);
DESCRIPTION
Receives packet from network and reads the data into connection's
incoming data buffer. If the data was read directly this returns the
read bytes, if error occured this returns -1, if the data could not
be read directly at this time this returns -2 in which case the data
should be read again at some later time, or If EOF occured this returns
0.
|