Results 1 to 2 of 2

Thread: Events on sockets

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Location
    Porto Alegre, RS
    Posts
    210

    Events on sockets

    I writing a system that communicates with an CLP. And this software should talk with other two apps made in vb6.

    The talking will be by sockets.
    So how can i capture the events like i used to do with the old winsock control of vb6.

    The .Net system should not be waiting for a connection, it just should accept the client when it raises the ConnectionRequest event, or something like this.

    Other way is to have a thread waiting for a connection, witch will create a new tcplistener to talk with the vb6 winsock!

    Thanks,
    Guilherme Costa

  2. #2
    Addicted Member Dmyze's Avatar
    Join Date
    Mar 2002
    Location
    Seattle
    Posts
    160
    I think you want to use the NetworkStream Object.

    Here is an article about it.

    http://www.eggheadcafe.com/articles/20020323.asp
    -Daryl
    "Two More Rolls of Duct tape, and the world is mine!"
    VB.NET Guru

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width