C# Class BeardedManStudios.Network.WinMobileServer

Inheritance: WinMobileWorker
Exibir arquivo Open project: drakelinglabs/unityarmada

Public Methods

Method Description
Connect ( string hostAddress, ushort port ) : void
Disconnect ( ) : void
Send ( byte data, int length, object endpoint = null ) : void
TimeoutDisconnect ( ) : void
WinMobileServer ( int maxConnections ) : System
Write ( NetworkingPlayer player, NetworkingStream stream ) : void
Write ( NetworkingStream stream ) : void

Protected Methods

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

Private Methods

Method Description
ClientDisconnected ( NetworkingPlayer player ) : void
ClientDisconnected ( int index ) : void
ConnectionReceived ( StreamSocketListener sender, StreamSocketListenerConnectionReceivedEventArgs args ) : void
WriteAndClose ( StreamSocket targetSocket, NetworkingStream stream ) : void

Method Details

Connect() public method

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

ConnectAsync() protected method

protected ConnectAsync ( string ip, ushort port ) : void
ip string
port ushort
return void

Disconnect() public method

public Disconnect ( ) : void
return void

ReadAsync() protected method

protected ReadAsync ( ) : void
return void

Send() public method

public Send ( byte data, int length, object endpoint = null ) : void
data byte
length int
endpoint object
return void

SendAsync() protected method

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

SendAsync() protected method

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

TimeoutDisconnect() public method

public TimeoutDisconnect ( ) : void
return void

WinMobileServer() public method

public WinMobileServer ( 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