C# Class Networking.Client

A client manages the connection to the server
Afficher le fichier Open project: Silveryard/SmartHome Class Usage Examples

Méthodes publiques

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

Méthode Description
Work ( ) : void

Method Details

Client() public méthode

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
Résultat System

Connect() public méthode

Connects the client to the server
public Connect ( ) : bool
Résultat bool

Disconnect() public méthode

Disconnects the client from the server
public Disconnect ( ) : void
Résultat void

Send() public méthode

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