C# Класс MiniUDP.NetCore

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddConnection ( IPEndPoint endpoint, string token ) : NetPeer
Connect ( IPEndPoint endpoint, string token ) : NetPeer
Host ( int port ) : void
NetCore ( string version, bool allowConnections ) : System
PollEvents ( ) : void
Stop ( int timeout = 1000 ) : void

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

Метод Описание
QueueNotification ( NetPeer peer, byte buffer, ushort length ) : void

Adds an outgoing notification to the controller processing queue.

SendKick ( NetPeer peer, byte reason ) : void

Immediately sends out a disconnect message to a peer.

SendPayload ( NetPeer peer, ushort sequence, byte data, ushort length ) : SocketError

Immediately sends out a payload to a peer.

Start ( ) : void

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

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

public AddConnection ( IPEndPoint endpoint, string token ) : NetPeer
endpoint System.Net.IPEndPoint
token string
Результат NetPeer

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

public Connect ( IPEndPoint endpoint, string token ) : NetPeer
endpoint System.Net.IPEndPoint
token string
Результат NetPeer

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

public Host ( int port ) : void
port int
Результат void

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

public NetCore ( string version, bool allowConnections ) : System
version string
allowConnections bool
Результат System

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

public PollEvents ( ) : void
Результат void

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

public Stop ( int timeout = 1000 ) : void
timeout int
Результат void