RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIpSocket.LookupProtocol Method

Returns the protocol number.

Pascal
function LookupProtocol(const pn: AnsiString): TSocketProtocol;
C++
__fastcall TSocketProtocol LookupProtocol(const AnsiString pn);

Use LookupProtocol to return the protocol number being used by the IP socket. The protocol number is based on the protocol name. 

For more information, refer to the home page of the Internet Assigned Numbers Authority (www.iana.org), which maintains lists of protocol numbers and their associated protocols. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!