help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes] Reference for unit 'lNet' (#LNet)

TLSocket.Connect

Connects to a networked host

Declaration

Source position: lnet.pp line 137

public function TLSocket.Connect(

  const Address: String;

  const APort: Word

):Boolean;

Arguments

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

Function result

Returns true on !initial! success. Actual connect is reported with the OnConnect event

Description

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.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505