[Overview][Constants][Types][Classes] | Reference for unit 'lNet' (#LNet) |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Basic implementation of TLHandle abstract class providing IP socket functionality.
Source position: lnet.pp line 90
type TLSocket = class(TLHandle) |
||
protected |
||
FAddress: TInetSockAddr; |
||
FPeerAddress: TInetSockAddr; |
||
FReuseAddress: Boolean; |
||
FConnected: Boolean; |
||
FConnecting: Boolean; |
||
FIgnoreShutdown: Boolean; |
||
FCanSend: Boolean; |
||
FCanReceive: Boolean; |
||
FServerSocket: Boolean; |
||
FBlocking: Boolean; |
||
FListenBacklog: Integer; |
||
FProtocol: Integer; |
||
FSocketType: Integer; |
||
function DoSend(); virtual; |
||
function SetupSocket(); virtual; |
||
function GetLocalPort; |
||
function GetPeerPort; |
||
function GetPeerAddress; |
||
function GetLocalAddress; |
||
function CanSend; virtual; |
||
function CanReceive; virtual; |
||
procedure SetOptions; virtual; |
||
procedure SetBlocking(); |
||
procedure SetReuseAddress(); |
||
function Bail(); |
||
procedure LogError(); virtual; |
||
property SocketType: Integer; [rw] |
|
Specifies the type of socket |
public |
||
constructor Create; override; |
|
Constructor for an IPv4 socket |
destructor Destroy; override; |
|
Destructor for an IPv4 socket |
function Listen(); |
|
Listen on given socket |
function Accept(); |
|
Accepts new connection on a listening socket |
function Connect(); |
|
Connects to a networked host |
function Send(); virtual; |
|
Sends data to the other side |
function SendMessage(); |
|
Sends a string message to the other side |
function Get(); virtual; |
|
Receives data from the other side |
function GetMessage(); |
|
Receives data and inputs it into a string |
procedure Disconnect; virtual; |
|
Disconnects the socket |
property Connected: Boolean; [r] |
|
Property specifying the connection status of socket |
property Connecting: Boolean; [r] |
|
Property specifying the connecting status of socket |
property Blocking: Boolean; [rw] |
|
Specifies the blocking setting of socket |
property ListenBacklog: Integer; [rw] |
|
Specifies the size of listen backlog for the listen call |
property Protocol: Integer; [rw] |
|
Specifies the protocol number of the socket |
property PeerAddress: String; [r] |
|
Specifies the peer network address |
property PeerPort: Word; [r] |
|
Specifies the peer port |
property LocalAddress: String; [r] |
|
Specifies the local address of socket |
property LocalPort: Word; [r] |
|
Specifies the local port of socket |
property ReuseAddress: Boolean; [rw] |
||
|
Specifies the next socket in linked list |
|
|
Specifies the previous socket in linked list |
|
property Creator: TLComponent; [r] |
|
Specifies the creator of socket |
end; |
|
Basic implementation of TLHandle abstract class providing IP socket functionality. |
|
| | ||
|
Base abstraction of a handle or socket |
|
| | ||
TObject |
TLSocket class provides basic IP socket functionality and properties. It is an implementation of the abstract TLHandle class. This class shouldn't be used directly unless one requires direct access to the socket.
No notes exist for this page yet.