-
I made a chat room, and now I can't find out how to do something that seems simple.
Ok, When a user connects to the server, I want the server to request a textfile(in the app dir) and distribute it to the rest of the chat room.
Also, the user who just joined is sent the text files of the other users.
Wasn't that simple? Hehe, thanks!
Matthew
-
Matthew,
Matthew,
Could you please display your coding, it will help us out to answer...
-
Is this what you mean?
All this is done automatically
Client 01 connects to the Server
[ CLIENT01 ] -----Connects to---- [ SERVER ]
The Server requests "XXX.txt" from Client 01
[ SERVER ] ------Request XXX.txt------ [ CLIENT01 ]
Client 01 Sends "XXX.txt" to the Server
[ CLIENT ] -------Sends XXX.txt------ [ SERVER ]
The Server sends "XXX.txt" to Client 02 and Client 03
[ SERVER ] -----Sends XXX.txt----[ CLIENT 02, CLIENT 03 ]
The Server sends "AAA.txt" and "BBB.txt"(text files that client 02 and 03 sent) to Client 01
[ SERVER ] -----Sends AAA.txt & BBB.txt------ [ CLIENT01]
If its the source code, I found that it's almost similar to
VB Winsock Many-Chat 2.00
http://www.geocities.com/SiliconValley/Campus/6818/