Skip to content

TcpLink

Class in IpDrv · IpDrv.TcpLink · native, transient

Object › Actor › Info › InternetLink › TcpLink

Subclasses: WebConnection, WebServer

Using it from Lua
h7.find_all("TcpLink")            -- live instances
h7.find_class("IpDrv.TcpLink")   -- the class
h7.hook("IpDrv.TcpLink.Accepted", fn)

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

NameTypeNotes
AcceptClassclass<TcpLink>
LinkStateELinkState
RecvBufstringconst
RemoteAddrIpAddr
SendFIFOarrayno declaration: type is approximate

Functions

NameDeclaration
Acceptedevent Accepted()
BindPortnative function int BindPort(optional int PortNum, optional bool bUseNextAvailable)
Closenative function bool Close()
Closedevent Closed()
IsConnectednative function bool IsConnected()
Listennative function bool Listen()
Opennative function bool Open(IpAddr Addr)
Openedevent Opened()
ReadBinarynative function int ReadBinary(int Count, out byte B[255])
ReadTextnative function int ReadText(out string Str)
ReceivedBinaryevent ReceivedBinary(int Count, byte B[255])
ReceivedLineevent ReceivedLine(string Line)
ReceivedTextevent ReceivedText(string Text)
SendBinarynative function int SendBinary(int Count, byte B[255])
SendTextnative function int SendText(coerce string Str)

Default values

bAlwaysTick=True

Inherited

FromMembers
InternetLink9 properties, 9 functions
Info0 properties, 0 functions
Actor156 properties, 262 functions
Object13 properties, 308 functions