Jump to content
Xtreme .Net Talk

Recommended Posts

  • Administrators
Posted

A simple example of how you can use classes under System.IO, System.Net and System.Threading to implement a client server file transfer application.

 

The server will allow you to configure the port it listens on and where received files are saved. It listens for incomming connections on a dedicated thread and will spawn 1 thread per incomming request.

 

The client allows you to specify the servers IP and port and also select the file to transfer.

 

Probably needs a lot more testing than it's received but can happily transfer 3 80M+ mpegs at the same time.

 

Thank's also go to dynamic_sysop as I've stolen code from his sample found here

Simple File Transfer.zip

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...