C# Класс Networking.Client

A client manages the connection to the server
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Work ( ) : void

Описание методов

Client() публичный Метод

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
Результат System

Connect() публичный Метод

Connects the client to the server
public Connect ( ) : bool
Результат bool

Disconnect() публичный Метод

Disconnects the client from the server
public Disconnect ( ) : void
Результат void

Send() публичный Метод

Sends a bunch of data to the server
public Send ( byte data ) : void
data byte The data to send
Результат void