C# 클래스 mybox.ServerClientConnection

Represents a two way connection from the server to a single client
파일 보기 프로젝트 열기: jonocodes/mybox 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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