Adding an event handler for a socket object

  • Thread starter Thread starter David
  • Start date Start date
D

David

I created a Systems.Net.Sockets.Socket object and called .Bind and .Listen.

I am now stuck trying to figure out how to write a method that will be
called when the socket is connected to! Do I need to override an event
handler from the Socket object? How can I get a list of those event
handlers and what would be the syntax of code to override it? I've been
Googling myself in circles for at least an hour now so any help would be
great.

Thanks,

David
 
I have been able to get this to work by allowing the socket to block but I
am not able to update the controls on my front panel when doing this (I'd
like to echo the characters being received back to a textbox). I'd like to
at least find out how to update the textbox (I've tried Textbox.Refresh,
Textbox.Update, Form.Refresh, and Form.Update) and how to work with a
non-blocked socket.

David
 
Back
Top