[Overview][Constants][Types][Classes] | Reference for unit 'lNet' (#LNet) |
Connects to a networked host
Source position: lnet.pp line 137
public function TLSocket.Connect( |
const Address: String; |
const APort: Word |
):Boolean; |
Address |
|
The address of the networked host in hostname or IP notation (eg: 'localhost' or '127.0.0.1') |
APort |
|
The port of the networked host |
Returns true on !initial! success. Actual connect is reported with the OnConnect event
This method connects the given socket to the host on other side. It's arguments specify the address and port on which to connect. If the socket is UDP, this method simply sets the peer address and port internal variables.
No notes exist for this page yet.