|
-
Aug 23rd, 2000, 02:24 PM
#1
Thread Starter
Lively Member
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]
-
Aug 23rd, 2000, 02:28 PM
#2
Monday Morning Lunatic
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
-
Aug 23rd, 2000, 02:31 PM
#3
Thread Starter
Lively Member
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]
-
Aug 23rd, 2000, 02:35 PM
#4
Addicted Member
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++.
-
Aug 23rd, 2000, 02:38 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|