DIGIT-ARC read-only archive · snapshot: July 23, 2026

best language for sockets programming!!

6 posts · originally from https://geek.digit.in/community/threads/best-language-for-sockets-programming.5187/

A
Ashootosh Original post #1
Jan 29, 2005 at 11:39 AM
hey guyz can anyone tell me which is the best language for sockets programming?? and how many of u are doing some work in sockets programming?? i wanna do it in C++ but dont have header files like->-> netdb.h,sockets.h etc etc from where i can get those??
tuXian
tuXian #2
Jan 29, 2005 at 1:14 PM
personally I prefer C to C++ as all the intricacies of Object orientation are gone(may be at a expense). But its a lot easir in C.

The best thing is to use linux. If u have got a Live CD then need not install linux too.

Happy Socket programming.
A
Jan 31, 2005 at 2:55 PM
r u using knoppix? and does ur live CD contains the header files necessary for sockets programming? i know c/c++ are the best but from where can i have knowledge about sockets programming in them??
S
Jan 31, 2005 at 2:58 PM
The WinSock (Windows Sockets) API is a socket programming library for Microsoft Windows Operating Systems.

It was originally based on Berkeley sockets. But several Microsoft specific changes were employed.

for Socket programming in C++ you need to include the following files

Code:
#include <winsock2.h> 

Add a refrence to winsock library
Take Project-Settings-Link and add ws2_32.lib to the library modules list. 

I am talking about VC++

for detailed info visit *www.codeproject.com/internet/
GNUrag
GNUrag #5
Feb 2, 2005 at 10:19 PM
tuxian said:
personally I prefer C to C++ as all the intricacies of Object orientation are gone(may be at a expense). But its a lot easir in C.

Writing socket programs is a lot easier in high level languages. Perl and Python are best suited for writing Socket scripts. You must use Perl to believe it...
A
Feb 3, 2005 at 1:50 PM
i have done some work in perl but i dont know how to make an exe in perl, the file which we get has extension .pl (now i dont know how to use this?). and also no one has answered the question->-> from where can i have header files like sockets.h etc. perl contains these files( will they work with c/c++)