C# Class J9Updater.FileTransferSvc.Ver1.FileTransmitService

Exibir arquivo Open project: zlphoenix/LearnCSharp Class Usage Examples

Public Methods

Method Description
Download ( Socket connection, byte handshakeMsg, int handshakeMsgLength ) : void

文件下载服务处理

FileTransmitService ( ) : System
Upload ( Socket connection, byte handshakeMsg, int handshakeMsgLength ) : void

Private Methods

Method Description
After2ndHandshakeCallback ( IAsyncResult ar ) : void
AfterReadFileToBuffer ( IAsyncResult ar ) : void

读取文件到Buffer,并发起文件传送

Close ( FileTransmitState transmitState ) : void
CloseConnectionCallBack ( IAsyncResult ar ) : void
DownLoadFinishingCallBack ( IAsyncResult ar ) : void
SendFileCallBack ( IAsyncResult ar ) : void
UploadCountinueReceiveFileCallback ( IAsyncResult ar ) : void
UploadFinishingCallBack ( IAsyncResult ar ) : void
UploadHandshakeSendCallback ( IAsyncResult ar ) : void
UploadReceiveFileCallback ( IAsyncResult ar ) : void
UploadWriteFileCallBack ( IAsyncResult ar ) : void

Method Details

Download() public method

文件下载服务处理
public Download ( Socket connection, byte handshakeMsg, int handshakeMsgLength ) : void
connection System.Net.Sockets.Socket
handshakeMsg byte
handshakeMsgLength int
return void

FileTransmitService() public method

public FileTransmitService ( ) : System
return System

Upload() public method

public Upload ( Socket connection, byte handshakeMsg, int handshakeMsgLength ) : void
connection System.Net.Sockets.Socket
handshakeMsg byte
handshakeMsgLength int
return void