linusfishing
Member
- Joined
- Jun 6, 2005
- Messages
- 15
- Programming Experience
- Beginner
Hello people,
Currently i have a project on chatting. The whole program is able to allow clients to chat altogether. Everybody is able to see everybody's chat. However, i want to be able to establish a private chat also whereby not everybody's chat is displayed.
Every client is "assigned" a sessionid whenever he connects and that is generated by a GUID. What i need to know is how do i specify in the server when a particular client wants to talks to a particular client, and only that particular client receives the message.
The following codes sends everything to all clients. Can someone modify it so that when a certain client wants to talk privately to another, it is possible.
mcolClients is the hastable that has been declared.
Dim objClient As Client
Dim d As DictionaryEntry
For each d in mcolClients
objClient = d.Value
objClient.Send(Data & vbCrLf)
Next
Linus
Currently i have a project on chatting. The whole program is able to allow clients to chat altogether. Everybody is able to see everybody's chat. However, i want to be able to establish a private chat also whereby not everybody's chat is displayed.
Every client is "assigned" a sessionid whenever he connects and that is generated by a GUID. What i need to know is how do i specify in the server when a particular client wants to talks to a particular client, and only that particular client receives the message.
The following codes sends everything to all clients. Can someone modify it so that when a certain client wants to talk privately to another, it is possible.
mcolClients is the hastable that has been declared.
Dim objClient As Client
Dim d As DictionaryEntry
For each d in mcolClients
objClient = d.Value
objClient.Send(Data & vbCrLf)
Next
Linus