Hi
I need to write a client/server application that sends files of about 5MB each. The server must be multithreaded(can accept multiple clients at the same time). Is there anyone who can help me please.
Thanks
(x)
foamy
1194
1194
Which protocol(s) will you be using? Will the data be sent through local network only or over the internet? What kind of load are you expecting? Since you want it to be multi-threaded I suspect that there will be a high number of connections?

3 answers
google ".net remoting" or ".net sockets" that's a pretty large question you're asking. i hope you have some programming basics down pat. to take baby steps, create a simple chat program in visual basic. a client that contains two buttons, a connect and a send button (make it connect a client to a server), and make two textboxes, one that displays the text you can type in, and one that displays the text you receive. the send button should take the text and send it over the socket to the server. a server program should contain 2 buttons as well, a Start button to start the server, and a send button as well. it should also contain the two textboxes that do the same thing. once you can confidently do that, move on to multiple clients. then move onto sending and receiving files. start with sending and receiving text first.
answered one month ago by:
131
I know how to create a chat between server and client. The problem is though that I do not know how to modify it to send/receive files
answered one month ago by:
30
Foamy's questions in the comment are important. Protocol: whether UDP or TCP/IP. Also, transfer over Internet or LAN.
One book I can recommend is this: Network Programming in .NET With C# and Visual Basic.NET, by Fiach Reid. It is a good reading.
I had actually wanted to implement something like this some time ago, but gave up. I do not think it is easy to create Server/Client applications in C# alone. There are already applications created for this purpose, so no point re-invent the wheels.
Now, my present implentation for File Transfer over Client/Server is:
Use FileZilla Server as File Server. FileZilla has its own client application also. With that, you can do File Transfer over Server and Clients bidirectionally.
If you really need to do File Transfer in C#, I would suggest using WinSCP for the client application. It offers WinSCP script commands, which can be embedded into your .NET applications. See http://winscp.net/eng/docs/guide_dotnet
answered 29 days ago by:
260