C# Class Networking.Client

A client manages the connection to the server
Show file Open project: Silveryard/SmartHome Class Usage Examples

Public Methods

Method Description
Client ( string address, int port ) : System

Creates a new instance

Connect ( ) : bool

Connects the client to the server

Disconnect ( ) : void

Disconnects the client from the server

Send ( byte data ) : void

Sends a bunch of data to the server

Private Methods

Method Description
Work ( ) : void

Method Details

Client() public method

Creates a new instance
public Client ( string address, int port ) : System
address string The address to connect to
port int The port to use for the connection
return System

Connect() public method

Connects the client to the server
public Connect ( ) : bool
return bool

Disconnect() public method

Disconnects the client from the server
public Disconnect ( ) : void
return void

Send() public method

Sends a bunch of data to the server
public Send ( byte data ) : void
data byte The data to send
return void