C# Class FileSockClient.UpLoadFileSocketClient

文件上传类
显示文件 Open project: huayancreate/HYPDM Class Usage Examples

Public Methods

Method Description
UpLoadFileSocketClient ( string filePathName, string srvSavePath ) : System

文件上传

UpLoadFileSocketClient ( string filePathName, string srvSavePath, System.Boolean blIsFuGai ) : System

上传文件

UpLoadFileSocketClient ( string filePathName, string srvSavePath, string desServerIp ) : System

文件上传

UpLoadFileSocketClient ( string filePathName, string srvSavePath, string desServerIp, int portID1, int portID2, int portID3 ) : System

文件上传

Protected Methods

Method Description
setxc ( string str, string host, int port ) : void

所传输的文件是否续传

startListen ( ) : void

启动

Private Methods

Method Description
scoketReceive ( string host, int port ) : string

scoketSend ( string host, int port, byte bs ) : System.Boolean

sendFlie ( string host, int port, string fileName, bool xuchuan, bool IsFuGai ) : System.Boolean

sendName ( string host, int port, string path ) : void

Method Details

UpLoadFileSocketClient() public method

文件上传
public UpLoadFileSocketClient ( string filePathName, string srvSavePath ) : System
filePathName string 需要上传的文件及路径
srvSavePath string 将在服务器保存的路径
return System

UpLoadFileSocketClient() public method

上传文件
public UpLoadFileSocketClient ( string filePathName, string srvSavePath, System.Boolean blIsFuGai ) : System
filePathName string 需要上传的文件及路径
srvSavePath string 将在服务器保存的路径
blIsFuGai System.Boolean 是否替换文件如果指定目录已经存在此文件的情况下
return System

UpLoadFileSocketClient() public method

文件上传
public UpLoadFileSocketClient ( string filePathName, string srvSavePath, string desServerIp ) : System
filePathName string 保存的文件名称
srvSavePath string 服务器上的保存路径
desServerIp string 接收文件的Socket服务器IP
return System

UpLoadFileSocketClient() public method

文件上传
public UpLoadFileSocketClient ( string filePathName, string srvSavePath, string desServerIp, int portID1, int portID2, int portID3 ) : System
filePathName string 保存的文件名称
srvSavePath string 服务器上的保存路径
desServerIp string 接收文件的Socket服务器IP
portID1 int 文件内容字节流
portID2 int 文件在服务器的保存路径
portID3 int 一些标识,是否续传
return System

setxc() protected method

所传输的文件是否续传
protected setxc ( string str, string host, int port ) : void
str string
host string 127.0.0.1
port int port = 2007
return void

startListen() protected method

启动
protected startListen ( ) : void
return void