borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (help in winsock)Next Topic (Executing DIR Command in a remote node.) New Topic New Poll Post Reply
AndreaVB Forum : Network : sending msges with winsock..??
Poster Message
elric
Level: Scholar


Registered: 09-07-2006
Posts: 35

Ads by Lake Quincy Media
icon sending msges with winsock..??

how could i send messages in winsock in this format in a textbox,,

/ClientName<space> Message...

this should be put it a textbox..
the client name is the name who will recieved the message,,,

please tell me how should i deal with this..

    

____________________________
-same thing over and over again..-

31-07-2006 at 12:38 PM
View Profile Send Email to User Show All Posts | Quote Reply
misterxed
Level: VB Lord


Registered: 12-06-2005
Posts: 153
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Network : sending msges with winsock..??
Previous Topic (help in winsock)Next Topic (Executing DIR Command in a remote node.) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder