System.Net.Socket.TSocket.DoListen

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DoListen(QueueSize: Integer = -1); virtual;

C++

virtual void __fastcall DoListen(int QueueSize = 0xffffffff);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Net.Socket.pas
System.Net.Socket.hpp
System.Net.Socket TSocket

Description

Binds your socket to a local IP address and configures the socket to begin accepting incoming connections.

QueueSize determines the maximum length of the queue of pending connections. Use -1 for the maximum recommended length of the queue (default).

Exceptions

A call to DoListen can raise any of the following exceptions:

Exception Exception.Message Scenarios

ESocketError

Network socket error: <error message> (<error code>), on API 'listen'

DoListen calls some methods that may raise exceptions of their own:

See Also