Last post Aug 30, 2008 01:13 AM by Bhushan Lolge
Aug 26, 2008 09:05 AM|Bhushan Lolge|LINK
I have write one program in vb.net which accepts data using port no and ip address after specific time using timer.
Here is code
aTimer.Interval = 5000
This works fine. It gets data when timer event is fire.
But i want event which will fire when data is arrived from network(DataArrived event for winsock control in vb6)
Aug 29, 2008 10:28 AM|BlueJam|LINK
I don't think there is an Arrival event you can hook into. You'd need to set up a thread to listen on the port and process data as it comes in.
There is some example code on the following msdn page :-
Aug 30, 2008 01:13 AM|Bhushan Lolge|LINK
Thanks for reply.