⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 Title: File Transfer client and server Description: Send or recieve files of any size or type betwe
💻 TXT
字号:
Sendfile:
[in]const char *fName, 		*Directory of, and complete filename to send.
[in]const char *fRemoteName, 	*Directory of, and complete filename to write file on remote
				 computer. "c:\file.exe", if NULL it is up to RecvFile to have
				 included the fName parameter, either RecvFile or SendFile
				 must specify NULL not both a filename or both NULL.
[in]unsigned int IP			*IP to send to. example: inet_addr("127.0.0.1");
[in]unsigned short Port		*Port RecvFile on remote computer is listening on.
[in]int bSize			*Size of the buffer used to read from the file and amount to
				 try to send on each call to send().
BOOL Blocking			*If TRUE SendFile will keep trying indefinetly to connect to
				 the specified IP and return when there is and error or the file
				 has been sent. If FALSE SendFile will return if it cant
				 connect to the specified IP on the first try, there is an
				 error, or the file has been sent.
MYFUNC CallbackFunc		*Pointer function of type (void)(int,int,int) to call every
				 WAIT_CALL iterations of the file sending loop. passed
				 to it will be the total bytes sent, the last send() calls return,
				 and the size of the file in bytes. It can be used to call a
				 function to calculate bitrate, time left, ect. If NULL no
				 function will be called.
Return Value:			*1 on success 0 on failure.

Recvfile:
[in]const char *fName, 		*Directory of, and complete filename to send.
[in]unsigned short Port		*Port RecvFile on remote computer is listening on.
[in]int bSize			*Size of the buffer used to pass to recv() and amount to
				 try to recv on each call to recv().
MYFUNC CallbackFunc		*Pointer function of type void name(int,int,int) to call every
				 WAIT_CALL iterations of the file recieving loop. passed
				 to it will be the total bytes recieved, the last recv() calls
				 return, and the size of the file in bytes. It can be used to
				 call a function to calculate bitrate, time left, ect. If NULL no
				 function will be called.
Return Value:			*1 on success 0 on failure.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -