yw_conn_recv_reply

Name

yw_conn_recv_reply -- recive reply packet from peer

Synopsis


     #include <yw/sock.h>
   

YwPacket *yw_conn_recv_reply(YwConnection *conn, int timeout);

DESCRIPTION

This function recives packet from peer along conn within timeout miliseconds (see yw_conn_recv(3) for discussion about it). However, when packet, which is not reply is recived, it's queued, to be fetched uppon next call to yw_conn_recv(3). When reply packet is fetched, it's returned immidietly. This function can take more then timeout miliseconds to complete, when there are packets avaialble which come in less then timeout ms, but which are not of reply type.

RETURN VALUE

The recived packet or NULL in case of error or timeout.

INFO

Generated from: recv.c,v 1.12 2001/05/11 10:38:05 malekith Exp.