-
TCP socket question
I am fairly new to .NET, and have written something that uses a socket running TCP to listen for a connection request. In VB6, you would just call socket.Listen, and when a request was made, it would raise an event.
I am unclear on how to do the same thing in .NET, since it doesn't appear that there are any events for sockets. Surely I don't have to keep manually polling the socket for connection requests.
-
Well normally you would manually add event handlers to your socket to handle the events. Best way to figure it out is to do a search in the forums on sockets, lots of good example code and snippets that will give you a good idea on how .Net handles it.
-
I guess I'm too new to .NET.
I find it interesting what MS has decided to make into a control and what they have left as a class without events. Sockets are something that make more sense responding to events than most things, but it doesn't appear to be built in.
Or maybe I just haven't gotten to that yet.:blush: