C# Class J9Updater.FileTransferSvc.Ver1.TcpFileTransmitServiceDistributer

TCP文件传输服务 Ver 1
Inheritance: IServiceDistributer
显示文件 Open project: zlphoenix/LearnCSharp

Public Methods

Method Description
Dispose ( ) : void

执行与释放或重置非托管资源相关的应用程序定义的任务。

Handle ( byte handshakeMsg, int length, Socket socket, object state ) : bool
Handshake ( byte handshakeMsg, int length, Socket connection ) : bool

服务路由匹配

TcpFileTransmitServiceDistributer ( ) : System

Method Details

Dispose() public method

执行与释放或重置非托管资源相关的应用程序定义的任务。
public Dispose ( ) : void
return void

Handle() public method

public Handle ( byte handshakeMsg, int length, Socket socket, object state ) : bool
handshakeMsg byte
length int
socket System.Net.Sockets.Socket
state object
return bool

Handshake() public method

服务路由匹配
public Handshake ( byte handshakeMsg, int length, Socket connection ) : bool
handshakeMsg byte 消息字节流
length int 消息长度
connection System.Net.Sockets.Socket
return bool

TcpFileTransmitServiceDistributer() public method

public TcpFileTransmitServiceDistributer ( ) : System
return System