Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Socket programing in windows XP

flame_pvtflame_pvt Posts: 1Member
Hi there,
I wanted to write a simple socket windows program to connect to a site and read a http header and the page with POST and GET Request. This was a easy task in UNIX as gnu library are easily avaiable of that. In windows system, I dont want to buy either VC++ or Borland C++ and these are expensive. I want to use free simple c/c++ complier like Turbo C++, etc. I tried searching for socket libraries for windows, but all of them seems to support either VC++ or Borland complier... Does any one know about a simple c/c++ lib for windows that i can user to make my own program... I dont mind downloanding another C/c++ complier for windows as long its free... I am using windows xp home and currently have turbo c++ 1.0...i know its a very old complier, but works like a gem...

-flame

Comments

  • anthrax11anthrax11 Posts: 511Member
    [b][red]This message was edited by anthrax11 at 2006-6-8 16:50:8[/red][/b][hr]
    : Hi there,
    : I wanted to write a simple socket windows program to connect to a site and read a http header and the page with POST and GET Request. This was a easy task in UNIX as gnu library are easily avaiable of that. In windows system, I dont want to buy either VC++ or Borland C++ and these are expensive. I want to use free simple c/c++ complier like Turbo C++, etc. I tried searching for socket libraries for windows, but all of them seems to support either VC++ or Borland complier... Does any one know about a simple c/c++ lib for windows that i can user to make my own program... I dont mind downloanding another C/c++ complier for windows as long its free... I am using windows xp home and currently have turbo c++ 1.0...i know its a very old complier, but works like a gem...
    :
    : -flame
    :

    How about using Winsock?

    http://www.sockets.com/
    http://www.vijaymukhi.com/vmis/wsockprg.htm
    http://www.vijaymukhi.com/vmis/wsockexp.htm
  • stoberstober Posts: 9,765Member ✭✭✭
    currently have turbo c++ 1.0...i know its a very old complier, but works like a gem...
    :

    works, that is, until it don't do anything that you want to do in the Windows operating system. that ancient compiler cannot access any of the win32 api functions, such as those found in winsock library.

    You can download Dev-C++ free at www.bloodshed.net. Don't expect to use any of the turbo c functions because few, if any, are supported by any 32-bit compiler. Its a whole new ballgame. winsock functions are similar, but not exactly like those in *nix
Sign In or Register to comment.