VB code to TELNET a port and get status

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

    #1

    VB code to TELNET a port and get status

    I need to write a VB program that can telnet to a TCP port and get the
    status, whether connection succeeded or failed. Is there any API for
    doing this ?

    Thanks.
  • Bugsy

    #2
    Re: VB code to TELNET a port and get status

    I did something like this using a control (Think it was something like MS
    comm control)

    This allows you to create a connection to a specific host on a specific
    port. I guess with suitabe error handling you could detect success (easy!)
    or failure.

    Dave

    "Srini" <aone1504@yahoo .com> wrote in message
    news:e5aecd60.0 310172153.6b3ab 4fe@posting.goo gle.com...[color=blue]
    > I need to write a VB program that can telnet to a TCP port and get the
    > status, whether connection succeeded or failed. Is there any API for
    > doing this ?
    >
    > Thanks.[/color]


    Comment

    • Stephane Richard

      #3
      Re: VB code to TELNET a port and get status

      There's also the winsock API

      --
      Stéphane Richard
      "Ada World" Webmaster



      "Bugsy" <dont.spam.me@b topenworld.comm y> wrote in message
      news:bmr45v$rs1 $1@titan.btinte rnet.com...[color=blue]
      > I did something like this using a control (Think it was something like MS
      > comm control)
      >
      > This allows you to create a connection to a specific host on a specific
      > port. I guess with suitabe error handling you could detect success[/color]
      (easy!)[color=blue]
      > or failure.
      >
      > Dave
      >
      > "Srini" <aone1504@yahoo .com> wrote in message
      > news:e5aecd60.0 310172153.6b3ab 4fe@posting.goo gle.com...[color=green]
      > > I need to write a VB program that can telnet to a TCP port and get the
      > > status, whether connection succeeded or failed. Is there any API for
      > > doing this ?
      > >
      > > Thanks.[/color]
      >
      >[/color]


      Comment

      Working...