A 3 way chat

Posted on 2003-02-27
Medium Priority
Last Modified: 2013-11-13
How can i create a 3 way chat not just a server and client but a server and clients. I need to send a message to different computers on a network and i want them all to receive the information when i send it. I know Winsock can do this and i have created a two way Client/Server chat but i do not know how to make all the clients/computers receive the information
Question by:Tomide

Expert Comment

ID: 8041039
Are you using TCP or UDP?

If you are using TCP:

in the server, create an array of Winsock controls(just set the index of your original winsock control to 0)

in the connection_request event:
(I am assuming your winsock control is called Winsock1)

Dim wsIdx as Integer
wsIdx = Winsock.UBound +1
Load Winsock(wsIdx)

You'll also have to create a subroutine to step through
all the Winsocks send  data to all clients.


Author Comment

ID: 8042898
Thanks M.E.Pierce. I was able to get it done. Do you how i can send an image using picyure box and it appear as an image on the client side? Is this possible at all i have never done or heard anything like it before but i want to add it to my chat.

Accepted Solution

M.E.Pierce earned 400 total points
ID: 8043725
Yes, you can do that, but I believe you'll have to ask another question, i don't think I am allowed to answer a new question in this thread.

Email me when you post you're new question,
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Author Comment

ID: 8051272
M.E.Pierce, Thanks alot i was able to solve the problem play around with my codes and the image stuff too.

Expert Comment

ID: 8901024
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?
LVL 49

Expert Comment

ID: 8983713
Moderator, my recommended disposition is:

    Accept M.E.Pierce's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question