Adding an event handler for a socket object

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    #1

    Adding an event handler for a socket object

    I created a Systems.Net.Soc kets.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


  • David

    #2
    Re: Adding an event handler for a socket object

    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

    "David" <davidd31415@yo owhoo.comwrote in message
    news:q7adnX4Z-O6_P8XbnZ2dnUVZ _rmdnZ2d@comcas t.com...
    >I created a Systems.Net.Soc kets.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
    >
    >
    >

    Comment

    Working...