Results 1 to 5 of 5

Thread: How to make a multiple connection chat room?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    LewZer-LanD
    Posts
    120

    Talking

    I'm designing a chat room with visual basic 6 enterprise.. and i'm usin da winsock control.. but how can i let more than 2 people talk.. kinda like an aim/icq chatroom.

    any help is welcome
    -da404LewZer
    Kid A

    18 Year Old Programmer
    Visual Basic 6 & .NET Enterprise, ASP, WinXP (Advanced Server) Administration, HTML, Graphic Arts, Winsock, Learning VC++ and now maybe C#.. heh
    [vbcode]
    'back in the day vb6 code
    Private Sub My_Life()
    If Hour(Now) > 3 And Hour(Now) < 13 Then
    Status = "Sleeping"
    Else
    Status = "Computing"
    End If
    End Sub
    [/vbcode]

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    If you use threads, then you can start a new connection per thread. Other than that, use the Winsock2 API, to avoid the overhead of multiple control instances.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    LewZer-LanD
    Posts
    120
    I have never heard of that api command before... do you know where i can get sum info on it?
    Kid A

    18 Year Old Programmer
    Visual Basic 6 & .NET Enterprise, ASP, WinXP (Advanced Server) Administration, HTML, Graphic Arts, Winsock, Learning VC++ and now maybe C#.. heh
    [vbcode]
    'back in the day vb6 code
    Private Sub My_Life()
    If Hour(Now) > 3 And Hour(Now) < 13 Then
    Status = "Sleeping"
    Else
    Status = "Computing"
    End If
    End Sub
    [/vbcode]

  4. #4
    Addicted Member
    Join Date
    May 2000
    Location
    Grand Rapids, MI
    Posts
    231
    It's not an API command it's more of a concept, your program will have to be capable of multitasking(which isnt possible in VB6, but may be possible if you use one of the controls to manage it for you)

    It depends on your design of the program, typically with ICQ, and IRC, etc, you have a main server that keeps track of everyone, well on IRC you talk to the server, and the server publishes your response.

    with ICQ, theyre is a main server, more like a directory server, that lets you know where everyone is, and it directly connects to each person you want to talk to, but for every new instance (task) you have to create a new connection to that person, or you have a Server collaborate all the data it receives(which would have to be multitasked itself) Personally I would feel much more confortable writing a Multithreaded connection software in C++, or at least write the control to handle it in C++.
    -Karl Blessing aka kb244{fastHACK}
    [email protected]

  5. #5
    Guest
    Check http://www.planet-source-code.com and search "Chat". I am sure you will find a few things on how to make a chat with multiple users.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width