Adding an event handler for a socket object

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
 
D

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top