What library is there in C++ that has the ServerSocket, Socket,MulticastSocket, Datagram & DatagramSocket classes?it is java.net in java i guess :(

Recommended Answers

All 3 Replies

Standard C++ doesn't support sockets. You need to use a third party library or API. What compiler and OS are you using?

hmm...im using dev c++ as ide,by default it has mingw,it's GNU compiler i guess, and i run on windows xp.. :(
tried googling for libraries with socket class for c++ but haven't found any that could be downloaded so i gave up on the 20th page of the search.

i also have borland turbo c++, it has bcc32 as compiler.

If you use gcc the header files are

<sys/socket.h>
<arpa/inet.h>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.