Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI Currently I am developing a software which will have two part one server part and other Workstation .The Server and Workstation can run in two different machine.Now how can make connection between this two application so that they can transfer data.
I ma think of window service running in Server machine which will store data from database but not able to understand how to transfer this data to client part.one think cannot use (IIS , self hosted wcf,sqlserver authentication).I guess it have to be Client/server programming with Socket ..But have no idea in this field.Any idea is welcome

Thanks In advanced

Devopriyo Seal
Posted

1 solution

Well, you are right about using Sockets.
But can you be more specific? I recommend you to take a look at Socket Class and its methods.

http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.aspx[^]

Which protocol are you planning to use? UDP? TCP?

If you use udp you have two options of connection, synchronous and asynchronous. To know more about it, look at this:
http://msdn.microsoft.com/en-us/library/ms734701.aspx[^]

I have written a tutorial using asynchronous communication here:
http://codeabout.wordpress.com/2012/02/20/building-a-simple-chat-application-using-asynchronous-communication-and-udp-in-c/[^]

On the other hand, if you want a TCP protocol, I may have done something in the past as well... I'm not sure if it fits to you, look:
http://codeabout.wordpress.com/2011/03/06/building-a-simple-server-client-application-using-c/[^]

As I said, if you could be more specific about your application, I'm glad to help! :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900