client server

R

rs

I am trying to build a simple chat program between two people. I am using
sockets asynchronously . I am following the following example:

http://msdn.microsoft.com/library/d...n-us/cpguide/html/cpconusingclientsockets.asp

as you know, in a chat program, you type the message you want to send to
the other person and press the "send" for example. so the other window
should be waiting for more text to come. in the example above, the handle
gets close every time a complete text received. do i need to create one
socket to send all the text i need or do i need to create a socket everytime
a line is sent?

thanks
 
K

Ken Tucker [MVP]

Hi,

Maybe this will help
http://network.programming-in.net/articles/art3.asp

Here is how to make a p2p program using web services.
http://msdn.microsoft.com/msdnmag/issues/04/08/AdvancedBasics/


Ken
---------------------
I am trying to build a simple chat program between two people. I am using
sockets asynchronously . I am following the following example:

http://msdn.microsoft.com/library/d...n-us/cpguide/html/cpconusingclientsockets.asp

as you know, in a chat program, you type the message you want to send to
the other person and press the "send" for example. so the other window
should be waiting for more text to come. in the example above, the handle
gets close every time a complete text received. do i need to create one
socket to send all the text i need or do i need to create a socket everytime
a line is sent?

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top