Link to home
Start Free TrialLog in
Avatar of leork2004
leork2004

asked on

MSwinsock Based app in VB

Hi


I have developed an application in VB using Mswinsock .I have a client sending some data on fixed port number to server .
I need to send some data back to the client from the server using the  same connection .How do do this ?


Help its  Urgent

Avatar of mmusante
mmusante

the 'RemoteHostIp' property give you the IP of cliend who sent data so read it in the 'DataArrival' Event and send back your reply data to this IP
Avatar of Mike Tomlinson
Sounds like you already have the connection established...

Just use the SendData() function.

    Winsock1.SendData "someData"

or am I not understanding the question very well?

Perhaps you could explain the problem in a  little more detail.

Idle_Mind
There are many tutorials on this site that will help you further.
ASKER CERTIFIED SOLUTION
Avatar of tofra
tofra

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial