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

WORD PSocket::GetProtocolByName ( const PString name  )  [static, inherited]

Get the number of the protocol associated with the specified name.

Returns:
Number of protocol or 0 if the protocol was not found.
Parameters:
name  Name of protocol

Definition at line 1516 of file sockets.cxx.

{
#if !defined(__NUCLEUS_PLUS__) && !defined(_WIN32_WCE) && !defined(P_VXWORKS)
  struct protoent * ent = getprotobyname(name);
  if (ent != NULL)
    return ent->p_proto;
#endif

  return 0;
}


Generated by  Doxygen 1.6.0   Back to index