I don't need to test my programs. I have an error-correcting modem.

UE2:TcpLink (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Info >> InternetInfo >> InternetLink >> TcpLink
Package: 
IpDrv
Direct subclasses:
WebConnection, WebServer
This class in other games:
RTNP, UT, U1, UE2Runtime, UT2003, U2, UT2004, UT3, UDK

TcpLink: An Internet TCP/IP connection.

Properties[edit]

AcceptClass[edit]

Type: class<TcpLink>


LinkState[edit]

Type: ELinkState


RemoteAddr[edit]

Type: InternetLink.IpAddr


SendFIFO[edit]

Type: array<byte>

Modifiers: const


Default values[edit]

Property Value
bAlwaysTick True

Enums[edit]

ELinkState[edit]

STATE_Initialized 
Sockets is initialized
STATE_Ready 
Port bound, ready for activity
STATE_Listening 
Listening for connections
STATE_Connecting 
Attempting to connect
STATE_Connected 
Open and connected
STATE_ListenClosePending 
Socket in process of closing
STATE_ConnectClosePending 
Socket in process of closing
STATE_ListenClosing 
Socket in process of closing
STATE_ConnectClosing 
Socket in process of closing

Functions[edit]

Native functions[edit]

BindPort[edit]

native function int BindPort (optional int Port, optional bool bUseNextAvailable)


Close[edit]

native function bool Close ()


IsConnected[edit]

native function bool IsConnected ()


Listen[edit]

native function bool Listen ()


Open[edit]

native function bool Open (InternetLink.IpAddr Addr)


ReadBinary[edit]

native function int ReadBinary (int Count, out byte B[255])


ReadText[edit]

native function int ReadText (out string Str)


SendBinary[edit]

native function int SendBinary (int Count, byte B[255])


SendText[edit]

native function int SendText (coerce string Str)


Events[edit]

Accepted[edit]

event Accepted ()


Closed[edit]

event Closed ()


Opened[edit]

event Opened ()


ReceivedBinary[edit]

event ReceivedBinary (int Count, byte B[255])


ReceivedLine[edit]

event ReceivedLine (string Line)


ReceivedText[edit]

event ReceivedText (string Text)