Multiple Client to one Server Data sending.

I'm building a client/server software similar setup to a chat program. If there are say, 20 Clients connected to this server all on the same port (say 55), how do I determine which client sent what data and which client to send data back to using winsock. I've been lookign up ConnectionRequest with the requestID and looking up DataArrival and SendData and GetData and I'm having a hard time finding an answer. Maybe I was looking in the wrong spot by not comming here. I like this message board.

Thanks in Advance
Lloyd
LloydsterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wnaudeCommented:
When the Client connects to the server use the ip address to index each message from the client eg: Winsock1.RemoteHostIP


 
0
LloydsterAuthor Commented:
I understand what you're saying, and it makes sense, but how do I go about doing that?

Would it be something like this?

Private Sub cmdSend2Server1_Click()
Dim Data2Send

Data2Send = Text1.Text 'Data to send to say, server 1 with IP of 10.1.1.1

winsock1.RemoteHostIP =  "10.1.1.1"
winsock1.SendData Data2Send

End Sub
0
wnaudeCommented:
have a look at this example by Randy Wable http://www.a1vbcode.com/app.asp?ID=1382
All data is logged with the source IP

This is a chat system developed using winsock control.
http://www.a1vbcode.com/app.asp?ID=1257

Try these projects they should have everything you looking for
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CleanupPingCommented:
Lloydster:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
0
DanRollinsCommented:
Moderator, my recommended disposition is:

    Accept wnaude's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.