C# Class FlatRedBall.Network.NetworkManager

[Undocumented]
Mostra file Open project: vchelaru/FlatRedBall

Public Properties

Property Type Description
connectedTo List
localIP IPHostEntry
onRemoteCreate SpriteCustomBehavior
onRemoteName SpriteCustomBehavior

Public Methods

Method Description
Activity ( ) : void
Connect ( string ipAddress ) : void
Decode ( Int32 &targetInt, byte data, int &offset ) : void
Decode ( float &targetFloat, byte data, int &offset ) : void
Decode ( long &targetLong, byte data, int &offset ) : void
Decode ( string &targetString, byte data, int &offset ) : void
Disconnect ( ) : void
Encode ( string stringToEncode, MemoryStream ms ) : void
GetID ( Sprite s ) : int
GetLastLocalSpriteAdded ( ) : Sprite
GetLocalSprite ( int ID ) : Sprite
GetPacketType ( byte data, int offset ) : int
GetRemoteControlledSprite ( int ID, ushort computerID ) : Sprite
GetRemoteControlledSprite ( string name, ushort computerID ) : Sprite
Host ( ) : void
IsValidIP ( string s ) : bool
NetworkManager ( ) : System
RemovePacket ( BasePacket packet ) : void
ResetDisconnectedState ( ) : void
SendBytes ( byte bytesToSend ) : void
SendPacket ( BasePacket packetToSend ) : void
SendText ( string textToSend ) : void
StartPinging ( ) : void
ToString ( ) : string

Private Methods

Method Description
DecodeData ( byte data, int start, int recv, ushort senderComputerID ) : string
GetPendingSprite ( int ID, ushort computerID ) : NetSprite
SendPing ( ) : void

Method Details

Activity() public method

public Activity ( ) : void
return void

Connect() public method

public Connect ( string ipAddress ) : void
ipAddress string
return void

Decode() public static method

public static Decode ( Int32 &targetInt, byte data, int &offset ) : void
targetInt System.Int32
data byte
offset int
return void

Decode() public static method

public static Decode ( float &targetFloat, byte data, int &offset ) : void
targetFloat float
data byte
offset int
return void

Decode() public static method

public static Decode ( long &targetLong, byte data, int &offset ) : void
targetLong long
data byte
offset int
return void

Decode() public static method

public static Decode ( string &targetString, byte data, int &offset ) : void
targetString string
data byte
offset int
return void

Disconnect() public method

public Disconnect ( ) : void
return void

Encode() public static method

public static Encode ( string stringToEncode, MemoryStream ms ) : void
stringToEncode string
ms System.IO.MemoryStream
return void

GetID() public method

public GetID ( Sprite s ) : int
s Sprite
return int

GetLastLocalSpriteAdded() public method

public GetLastLocalSpriteAdded ( ) : Sprite
return Sprite

GetLocalSprite() public method

public GetLocalSprite ( int ID ) : Sprite
ID int
return Sprite

GetPacketType() public method

public GetPacketType ( byte data, int offset ) : int
data byte
offset int
return int

GetRemoteControlledSprite() public method

public GetRemoteControlledSprite ( int ID, ushort computerID ) : Sprite
ID int
computerID ushort
return Sprite

GetRemoteControlledSprite() public method

public GetRemoteControlledSprite ( string name, ushort computerID ) : Sprite
name string
computerID ushort
return Sprite

Host() public method

public Host ( ) : void
return void

IsValidIP() public static method

public static IsValidIP ( string s ) : bool
s string
return bool

NetworkManager() public method

public NetworkManager ( ) : System
return System

RemovePacket() public method

public RemovePacket ( BasePacket packet ) : void
packet BasePacket
return void

ResetDisconnectedState() public method

public ResetDisconnectedState ( ) : void
return void

SendBytes() public method

public SendBytes ( byte bytesToSend ) : void
bytesToSend byte
return void

SendPacket() public method

public SendPacket ( BasePacket packetToSend ) : void
packetToSend BasePacket
return void

SendText() public method

public SendText ( string textToSend ) : void
textToSend string
return void

StartPinging() public method

public StartPinging ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

connectedTo public_oe property

public List connectedTo
return List

localIP public_oe property

public IPHostEntry localIP
return IPHostEntry

onRemoteCreate public_oe property

public SpriteCustomBehavior onRemoteCreate
return SpriteCustomBehavior

onRemoteName public_oe property

public SpriteCustomBehavior onRemoteName
return SpriteCustomBehavior