C# Класс mybox.ServerClientConnection

Represents a two way connection from the server to a single client
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
User ServerUser

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

Метод Описание
SendCatchup ( Signal inputOperation, String arg ) : void

Send catchup operation to the client based on the original inputOperation

ServerClientConnection ( Server server, Socket inClientSocket ) : System
StopListener ( ) : void

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

Метод Описание
attachUser ( String userName, String password ) : bool

Attempt to authenticate the client via credentials. If it matches an account on the server return true.

close ( ) : void

Close the connection

handleInput ( Signal signal ) : void

Handle input signals from the client

listenToClient ( ) : void

Listen to the client via threadless async callback

onReceiveSignalComplete ( IAsyncResult iar ) : void

Async callback for client listening

processOutQueue ( ) : void
sendCommandToClient ( Signal signal ) : void

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

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

Send catchup operation to the client based on the original inputOperation
public SendCatchup ( Signal inputOperation, String arg ) : void
inputOperation Signal the initial operation for which to determine an output operation
arg String additional arguments for the input/output operation
Результат void

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

public ServerClientConnection ( Server server, Socket inClientSocket ) : System
server Server
inClientSocket System.Net.Sockets.Socket
Результат System

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

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

Описание свойств

User публичное свойство

public ServerUser,mybox User
Результат ServerUser