Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

int PIPXSocket::GetPacketType (  )  [inherited]

Gets the packet type for datagrams sent by this socket.

Returns:
type of packets or -1 if error.

Definition at line 1057 of file winsock.cxx.

References PChannel::ConvertOSError(), and PChannel::os_handle.

{
  int value;
  int valSize = sizeof(value);
  if (ConvertOSError(::getsockopt(os_handle,
                                NSPROTO_IPX, IPX_PTYPE, (char *)&value, &valSize)))
    return value;
  return -1;
}


Generated by  Doxygen 1.6.0   Back to index