|
-
Mar 16th, 2007, 01:46 AM
#1
Thread Starter
Addicted Member
How to send message using Winsock...
Hello friends I am trying to send message through winsock...
I think my client side code is ready but I dont know How to receive messsage through winsock..
And plz give me little info about port also
Thank you very much.....
-
Mar 16th, 2007, 12:48 PM
#2
Re: How to send message using Winsock...
Look for the _DataArrival event
use Code like this:
Code:
Private Sub WinSockTCP_DataArrival( ByVal bytesTotal As Long)
Stream = ""
WinSockTCP(Index).GetData Message
'Message (a String) is holding your message now
End Sub
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Mar 17th, 2007, 12:04 AM
#3
Thread Starter
Addicted Member
Re: How to send message using Winsock...
Hey but it is not going to connect.....For data arrival..
How can i check whether it is conncected or not...
Can you send all the steps for sending data plz...
Thanx
-
Mar 17th, 2007, 12:06 AM
#4
Thread Starter
Addicted Member
Re: How to send message using Winsock...
Whenever I start listen method its state is not changing frm 6(connecting state)
So I cant do any think but connecting
-
Mar 18th, 2007, 05:28 AM
#5
Re: How to send message using Winsock...
The Server should .Listen, then the client is doing the .Connect, this message will raise the ConnectionRequest_Event by the server, who should .Accept the connection. Now the clinet will change it's state to 7 (connected).
And then you can send from either side!
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
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
|