 |
misterxed Level: VB Lord

 Registered: 12-06-2005 Posts: 151
|
Re: sending msges with winsock..??
Hello,
Simple! Just add a function of this sort
Function ClientName() as String
Dim SPos As Integer
If Left$(Text1.Text, 1) = "/" Then
SPos = InStr(1, Text1.Text, " ")
ClientName = Mid(Text1.Text, 2, SPos - 1)
Debug.Print ClientName
End If
End Sub
|
Hope it works
Bye
-----
Edit:
Sorry for the incomplete answer above... (I had written the whole answer then cudn't post it... When i re-wrote the answer, i forgot the main point . LOLS..
Anywayz, once u get the ClientName, u can send it to him using HIS specific conection (HIS IP and HIS port....) And I'm assuming that u have multiple clients connected here on ur server, and each of them has a different IP address, and is connected to the server (ur pc) on different ports...
Anywayz, Best of luck
Regards
[Edited by misterxed on 01-08-2006 at 02:39 PM GMT]
____________________________
lOsT...
|
|
01-08-2006 at 06:14 AM |
|
|
|
|
 |
 |