Logo Search packages:      
Sourcecode: sofia-sip version File versions

SOFIAPUBFUN issize_t su_getmsgsize ( su_socket_t  s  ) 

Get size of message available in socket.

Definition at line 379 of file su.c.

References su_getmsgsize(), and su_ioctl().

Referenced by su_getmsgsize(), tport_recv_dgram(), and tport_recv_stream().

  int n = -1;
  if (su_ioctl(s, FIONREAD, &n) == -1)
    return -1;
  return (issize_t)n;

Generated by  Doxygen 1.6.0   Back to index