?
Solved

A 3 way chat

Posted on 2003-02-27
6
Medium Priority
?
168 Views
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
0
Comment
Question by:Tomide
6 Comments
 
LVL 1

Expert Comment

by:M.E.Pierce
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)

<BEGIN CODE>
Dim wsIdx as Integer
wsIdx = Winsock.UBound +1
Load Winsock(wsIdx)
Winsock(wsIdx).Accept(Request_ID)
<END CODE>

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




0
 

Author Comment

by:Tomide
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.
0
 
LVL 1

Accepted Solution

by:
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,
michael.e.pierce@<REMOVETHIS>unforgettable.com
0
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

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

Expert Comment

by:CleanupPing
ID: 8901024
Tomide:
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
 
LVL 49

Expert Comment

by:DanRollins
ID: 8983713
Moderator, my recommended disposition is:

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

DanRollins -- EE database cleanup volunteer
0

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