connectionlist FindConnectionByRemotePort method
Return to Introduction  Previous page  Next page
Applies to
acConnectionList component.  

Declaration
function FindConnectionByRemotePort(RemotePort: Word; Proto: TacConnectionProto = pAny): TacConnection;  

Description
The FindConnectionByRemotePort function searches for the connection where the local port is the same as specified in RemotePort parameter and protocol is the same as specified in Proto parameter (or returns any connection, either TCP or UDP, if Proto is pAny).  
 
Function returns pointer to TacConnection object if the connection was found in the internal list of component, or nil if the connection with specified RemotePort not found.  

See also
FindConnectionByLocalPort, FindConnectionByLocalIPStr, FindConnectionByRemoteIPStr,  
FindLocalIPStrByLocalPort, FindLocalIPStrByRemotePort, FindRemoteIPStrByLocalPort and FindRemoteIPStrByRemotePort methods.