views:

62

answers:

2

I am developing a server client application, where Client will send a huge amount of data to server through internet. However I have done some asynchronous socket programing before. Can I use same code here ?

+4  A: 

If both sides are .NET there are many higher level options like Windows Communication Foundation.

But you can use bare metal sockets if you want to.

Arve
Thanks for reply. Can you please elaborate WCF little more.(never heard about it)
Harun
WCF is Windows Communcation Foundation and a very big subject by itself. I'll add some links to the post.
Arve
if I use simple socket, is there any possibilities of data lost ?
Harun
If you use TCP NO. If you use UDP YES.
TheMachineCharmer
A: 

Helpful Code Examples

If you want to do low level stuff like sockets C# Netwrok Programming by Richard Blum is probably the best book.

Also, Asynchronous TCP server in C# and Asynchronous TCP client in C#.

Code samples from Essential WCF: For .NET Framework 3.5.

TheMachineCharmer
thanks. It will be very helpful for me.
Harun