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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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,
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI


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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
Suggested Courses

765 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