System.Win.ScktComp.TCustomWinSocket.AsyncInitSocket

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AsyncInitSocket(const Name, Address, Service: string; Port: Word;  QueueSize: Integer; Client: Boolean);

C++

void __fastcall AsyncInitSocket(const System::UnicodeString Name, const System::UnicodeString Address, const System::UnicodeString Service, System::Word Port, int QueueSize, bool Client);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TCustomWinSocket

Description

Looks up information or forms socket connections asynchronously.

AsyncInitSocket is used internally to open a socket connection in non-blocking sockets. It is called by the Open or Listen method when that method's Block parameter is false.

The Name parameter is the host name for the socket. The Address parameter is the IP address. The Service parameter is the service for which the socket is to used. The Port parameter is the port number for the socket. The QueueSize parameter indicates the number of client requests a listening connection can hold while waiting to form connections. The Client parameter indicates whether the socket address structure is to be used by a client socket to describe the destination of a connection or by a server socket to describe the listening connection.

See Also