Advertisement
C_Volume2 Coding Standards #73433

_*Winsock File Transfer*_

This basic application shows a way of transfering files using the winsock control. The application has been tested over network IP and internet IP. Fully equipt with the client and server it enables you to transfer files as big as you like without a loss of bandwidth. A swap tecneque is used, were a varible amount of bytes (packet size) can be sent, each packet waits until the one before it has transfered, meaning it will create less traffic insted of creating a packet overflow. The server allows you to block any incoming transfer requests, auto checking verification on transfer requests, auto connection for incoming file transfers, plus optional packet 'max' size. The server, plus the client, can cancel any transfer with no re-connection errors, which is an advantage if you have sent the wrong file. Port for connections can be changed too. Overall the applications (server & client) can be very useful. Take your time to view the code and perhaps give it a rating. The interface could be better of course, but then again I've tried to make it as cleanly coded and interfaced as possible to allow it to be understood. I've not yet had time to comment the code, but to anybody that knows the basic principles of the code would understand it. The following stages take place during a connection and file transfer: 1: A connection request is sent from the host to the server on a specified port. 2: Depending if the server is set to auto-connect or has blocked all incoming connection requests, the user can select wether to allow a connection. 3: The host selects the file, and packet size. The packet check request is then sent to the server. 4: The host picks up a Packet check request and makes sure the hosts packet size isn't larger than that of the servers. If so, the hosts packet size is set to optimum size. The transfer then can continue. 5: From the host more details are sent across with file information such as Size and Name of the file. 6: Depending wether the server auto-accepts the file, the user can select wether to start transfer or denie the transfer request. 7: When the file is accepted, the data is sent across in packet sizes such as 2048kb (per packet). This depends on what you've set the packet size to. 8: After the file transfer has completed the connection closes and the server begins to listen for a new connection. 9: A new file now can be sent whenever the user wishes. Thank you for your input.

AI

Resumo por IA: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Código fonte
original-source
Upload
Comentários originais (3)
Recuperado do Wayback Machine