C# Class MBC.Shared.Entities.NetCom

Allows communication between the server and client through a Socket.
Inheritance: System.Entity
Afficher le fichier Open project: aiclub/Mohawk_Battleship Class Usage Examples

Méthodes publiques

Méthode Description
Connect ( string serverIp ) : bool
Disconnect ( ) : void
NetCom ( System.Entity parent ) : System

Private Methods

Méthode Description
BeginReceive ( System.Action callback, int expectedSize ) : void
EventAction ( ) : void
EventLengthAction ( ) : void
HandshakeAction ( ) : void
Receive ( IAsyncResult ar ) : void

Method Details

Connect() public méthode

public Connect ( string serverIp ) : bool
serverIp string
Résultat bool

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

NetCom() public méthode

public NetCom ( System.Entity parent ) : System
parent System.Entity
Résultat System