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.....
Printable View
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.....
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
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
Whenever I start listen method its state is not changing frm 6(connecting state)
So I cant do any think but connecting
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!