Tutorial :networking header files in C++



Question:

I'm trying to convert a c program into c++ program . what is the equivalent header file for socket.h in c++ ?


Solution:1

socket.h


Solution:2

There's no real need to change the headers at all. On the other hand, if you're just planning to use the existing code, I'd probably just add:

#ifdef __cplusplus  #extern "C" {  





        
Previous
Next Post »