RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIpSocket.LookupPort Method

Returns the port number.

Pascal
function LookupPort(const sn: string; pn: pchar = nil): word;
C++
__fastcall word LookupPort(const AnsiString sn, const char * pn = nil);

Use LookupPort to return the port number of the IP socket. The port number is related to the service name and protocol number.  

For more information, refer to the home page of the Internet Assigned Numbers Authority (www.iana.org), which maintains lists of port numbers and their associated protocols. Also, refer to the documentation for the application's target operating system for information on how port numbers are stored and changed in that OS. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!