C# Class BeardedManStudios.Network.WinMobileServer

Inheritance: WinMobileWorker
Afficher le fichier Open project: drakelinglabs/unityarmada

Méthodes publiques

Méthode 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

Méthodes protégées

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

Private Methods

Méthode 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 méthode

public Connect ( string hostAddress, ushort port ) : void
hostAddress string
port ushort
Résultat void

ConnectAsync() protected méthode

protected ConnectAsync ( string ip, ushort port ) : void
ip string
port ushort
Résultat void

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

ReadAsync() protected méthode

protected ReadAsync ( ) : void
Résultat void

Send() public méthode

public Send ( byte data, int length, object endpoint = null ) : void
data byte
length int
endpoint object
Résultat void

SendAsync() protected méthode

protected SendAsync ( NetworkingPlayer player, NetworkingStream stream ) : void
player NetworkingPlayer
stream NetworkingStream
Résultat void

SendAsync() protected méthode

protected SendAsync ( NetworkingStream stream ) : void
stream NetworkingStream
Résultat void

TimeoutDisconnect() public méthode

public TimeoutDisconnect ( ) : void
Résultat void

WinMobileServer() public méthode

public WinMobileServer ( int maxConnections ) : System
maxConnections int
Résultat System

Write() public méthode

public Write ( NetworkingPlayer player, NetworkingStream stream ) : void
player NetworkingPlayer
stream NetworkingStream
Résultat void

Write() public méthode

public Write ( NetworkingStream stream ) : void
stream NetworkingStream
Résultat void