C# Class MBC.Shared.Entities.NetCom

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

Public Methods

Method Description
Connect ( string serverIp ) : bool
Disconnect ( ) : void
NetCom ( System.Entity parent ) : System

Private Methods

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

Method Details

Connect() public method

public Connect ( string serverIp ) : bool
serverIp string
return bool

Disconnect() public method

public Disconnect ( ) : void
return void

NetCom() public method

public NetCom ( System.Entity parent ) : System
parent System.Entity
return System