I'm just getting started with a small TCPIP project in VB.Net.
I've written a successful bit of code but I'm trying to make it work like
VB6 did. In VB6 you have a winsock and set it to connect to an IpAddress on
a certain port. The program then sits there waiting for some data to come
in, and an event is triggered, the data is processed and the routine exits
again.
With VB.Net, there doesn't seem to be an event as such. You set the
tcplister to read the data, and the program hangs until something is read.
How can I get it to trigger an event when it receives something?
- Jerry