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 |
文件上传
|
Method | Description | |
---|---|---|
setxc ( string str, string host, int port ) : void |
所传输的文件是否续传
|
|
startListen ( ) : void |
启动
|
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 |
|
public UpLoadFileSocketClient ( string filePathName, string srvSavePath ) : System | ||
filePathName | string | 需要上传的文件及路径 |
srvSavePath | string | 将在服务器保存的路径 |
return | System |
public UpLoadFileSocketClient ( string filePathName, string srvSavePath, System.Boolean blIsFuGai ) : System | ||
filePathName | string | 需要上传的文件及路径 |
srvSavePath | string | 将在服务器保存的路径 |
blIsFuGai | System.Boolean | 是否替换文件如果指定目录已经存在此文件的情况下 |
return | System |
public UpLoadFileSocketClient ( string filePathName, string srvSavePath, string desServerIp ) : System | ||
filePathName | string | 保存的文件名称 |
srvSavePath | string | 服务器上的保存路径 |
desServerIp | string | 接收文件的Socket服务器IP |
return | System |
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 |
protected setxc ( string str, string host, int port ) : void | ||
str | string | |
host | string | 127.0.0.1 |
port | int | port = 2007 |
return | void |