Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > TCP Connection with C++

Reply
Thread Tools

TCP Connection with C++

 
 
Teddy
Guest
Posts: n/a
 
      07-23-2003
How can I open a TCP Connection to another host in C++?
fopen does not work (like in other languages).

Thanks
Teddy

 
Reply With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      07-23-2003
"Teddy" <> wrote...
> How can I open a TCP Connection to another host in C++?


There is no way. You need some kind of OS-specific feature,
like Winsock...

> fopen does not work (like in other languages).


What other languages?

Victor


 
Reply With Quote
 
 
 
 
John Harrison
Guest
Posts: n/a
 
      07-23-2003

"Teddy" <> wrote in message
news:3f1eca00$0$22098$...
> How can I open a TCP Connection to another host in C++?
> fopen does not work (like in other languages).
>
> Thanks
> Teddy
>


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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
send tcp raw socket (bogus tcp header length) Tiger C Programming 5 05-01-2006 05:53 AM
tcp/ip vs microsoft tcp/ip ver 6 john Computer Support 1 08-05-2005 02:45 PM
NAT two outside TCP ports to one inside TCP port Kevin Cisco 1 11-10-2004 08:15 AM
Secure and compressed TCP/IP connection (for any TCP/IP services and applications) Pavel Aronovich Computer Security 0 02-22-2004 08:35 AM
LPR/Standard, TCP/IP, HP TCP/IP Ports DJ Chiro MCSE 1 11-07-2003 08:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57