TCP Connection with C++

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

    TCP Connection with C++

    How can I open a TCP Connection to another host in C++?
    fopen does not work (like in other languages).

    Thanks
    Teddy

  • Victor Bazarov

    #2
    Re: TCP Connection with C++

    "Teddy" <bla@bla.bla> wrote...[color=blue]
    > How can I open a TCP Connection to another host in C++?[/color]

    There is no way. You need some kind of OS-specific feature,
    like Winsock...
    [color=blue]
    > fopen does not work (like in other languages).[/color]

    What other languages?

    Victor


    Comment

    • John Harrison

      #3
      Re: TCP Connection with C++


      "Teddy" <bla@bla.bla> wrote in message
      news:3f1eca00$0 $22098$5402220f @news.sunrise.c h...[color=blue]
      > How can I open a TCP Connection to another host in C++?
      > fopen does not work (like in other languages).
      >
      > Thanks
      > Teddy
      >[/color]

      Standard C++ has no automatic support for networking. If fopen does not work
      for you then you need to look at a platform specific solution. The place to
      ask about that is in a newsgroup that discusses your platform, whatever that
      might be. Here we discuss the language only.

      john


      Comment

      Working...