Mostly Harmless

UE3:TcpLink (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 06:48, 17 January 2010 by Wormbo (Talk | contribs) (1 revision: class descriptions for UDK January update (part 5))

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

TcpLink: An Internet TCP/IP connection. © 1997-2009 Epic Games, Inc. All Rights Reserved

Properties

AcceptClass

Type: class<TcpLink>


LinkState

Type: ELinkState


RecvBuf

Type: string

Modifiers: const


RemoteAddr

Type: InternetLink.IpAddr


SendFIFO

Type: array<byte>

Modifiers: const

send fifo

Default values

Property Value
bAlwaysTick True

Subobjects

Sprite

Class: Engine.SpriteComponent

Inherits from: InternetLink.Sprite

Property Value
ReplacementPrimitive None

Enums

ELinkState

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

Native functions

BindPort

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


Close

native function bool Close ()


IsConnected

native function bool IsConnected ()


Listen

native function bool Listen ()


Open

native function bool Open (InternetLink.IpAddr Addr)


ReadBinary

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


ReadText

native function int ReadText (out string Str)


SendBinary

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


SendText

native function int SendText (coerce string Str)


Events

Accepted

event Accepted ()


Closed

event Closed ()


Opened

event Opened ()


ReceivedBinary

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


ReceivedLine

event ReceivedLine (string Line)


ReceivedText

event ReceivedText (string Text)