C# Class BeardedManStudios.Network.WinMobileWorker

Inheritance: BeardedManStudios.Network.NetWorker
Show file Open project: drakelinglabs/unityarmada

Protected Properties

Property Type Description
serverHost Windows.Networking.HostName

Public Methods

Method Description
Connect ( string hostAddress, ushort port ) : void
Disconnect ( ) : void
Disconnect ( NetworkingPlayer player, string reason = "" ) : void
WinMobileWorker ( ) : System
WinMobileWorker ( int maxConnections ) : System
Write ( NetworkingPlayer player, NetworkingStream stream ) : void
Write ( NetworkingStream stream ) : void

Protected Methods

Method Description
ConnectAsync ( string hostAddress, ushort port ) : void
ErrorDisconnect ( string message ) : void
ReadAsync ( ) : void
SendAsync ( NetworkingPlayer player, NetworkingStream stream ) : void
SendAsync ( NetworkingStream stream ) : void

Method Details

Connect() public method

public Connect ( string hostAddress, ushort port ) : void
hostAddress string
port ushort
return void

ConnectAsync() abstract protected method

abstract protected ConnectAsync ( string hostAddress, ushort port ) : void
hostAddress string
port ushort
return void

Disconnect() public method

public Disconnect ( ) : void
return void

Disconnect() public method

public Disconnect ( NetworkingPlayer player, string reason = "" ) : void
player NetworkingPlayer
reason string
return void

ErrorDisconnect() protected method

protected ErrorDisconnect ( string message ) : void
message string
return void

ReadAsync() abstract protected method

abstract protected ReadAsync ( ) : void
return void

SendAsync() protected method

protected SendAsync ( NetworkingPlayer player, NetworkingStream stream ) : void
player NetworkingPlayer
stream NetworkingStream
return void

SendAsync() abstract protected method

abstract protected SendAsync ( NetworkingStream stream ) : void
stream NetworkingStream
return void

WinMobileWorker() public method

public WinMobileWorker ( ) : System
return System

WinMobileWorker() public method

public WinMobileWorker ( int maxConnections ) : System
maxConnections int
return System

Write() public method

public Write ( NetworkingPlayer player, NetworkingStream stream ) : void
player NetworkingPlayer
stream NetworkingStream
return void

Write() public method

public Write ( NetworkingStream stream ) : void
stream NetworkingStream
return void

Property Details

serverHost protected property

protected HostName,Windows.Networking serverHost
return Windows.Networking.HostName