tags:

views:

33

answers:

1

I want to send data or packets at perticular IP address using ANSI C standard so that my code will be plateform independent, how is it possible in window OS without using window libraries like winsock etc. Kindly give me some guidelines or hints.

+1  A: 

i don't think it's possible to create platform independent socket code because though ANSI C is a standard, well-defined language and network communications are invariably a feature provided by the operating system and will vary from OS to OS. This means that your code will have differences between platforms. The best you could do is mitigate these differences by constructing a clever API/library to limiting the code you need to re/write when porting.

Paul Sasik