TcpLink¶
Class in IpDrv · IpDrv.TcpLink · native, transient
Object › Actor › Info › InternetLink › TcpLink
Subclasses: WebConnection, WebServer
Using it from Lua
Enums¶
ELinkState
STATE_Initialized = 0, STATE_Ready = 1, STATE_Listening = 2, STATE_Connecting = 3, STATE_Connected = 4, STATE_ListenClosePending = 5, STATE_ConnectClosePending = 6, STATE_ListenClosing = 7, STATE_ConnectClosing = 8
Properties¶
| Name | Type | Notes |
|---|---|---|
AcceptClass | class<TcpLink> | |
LinkState | ELinkState | |
RecvBuf | string | const |
RemoteAddr | IpAddr | |
SendFIFO | array | no declaration: type is approximate |
Functions¶
| Name | Declaration |
|---|---|
Accepted | event Accepted() |
BindPort | native function int BindPort(optional int PortNum, optional bool bUseNextAvailable) |
Close | native function bool Close() |
Closed | event Closed() |
IsConnected | native function bool IsConnected() |
Listen | native function bool Listen() |
Open | native function bool Open(IpAddr Addr) |
Opened | event Opened() |
ReadBinary | native function int ReadBinary(int Count, out byte B[255]) |
ReadText | native function int ReadText(out string Str) |
ReceivedBinary | event ReceivedBinary(int Count, byte B[255]) |
ReceivedLine | event ReceivedLine(string Line) |
ReceivedText | event ReceivedText(string Text) |
SendBinary | native function int SendBinary(int Count, byte B[255]) |
SendText | native function int SendText(coerce string Str) |
Default values¶
Inherited¶
| From | Members |
|---|---|
| InternetLink | 9 properties, 9 functions |
| Info | 0 properties, 0 functions |
| Actor | 156 properties, 262 functions |
| Object | 13 properties, 308 functions |