#include <sys/socket.h>
#include <resolv.h>
#include <arpa/inet.h.
#include <netinet/in.h>
#include <stdio.h>
If i am right the headers i type out i could connect to a server remote over the internet am i missing any other headers? :confused:
Printable View
#include <sys/socket.h>
#include <resolv.h>
#include <arpa/inet.h.
#include <netinet/in.h>
#include <stdio.h>
If i am right the headers i type out i could connect to a server remote over the internet am i missing any other headers? :confused:
Good title for the thread, who would have guessed you'd have a C question.
Does connecting to another machine not work? If so why don't you just tell us the error instead of having us fumble around with could-be answers. Try reading beej's tutorial too if you havn't already.
It probably depends on your compiler . . . . Try posting in the networking board or get a tutorial.
Do you get link errors or something?
I useing Gcc and linux as my os.
As stated, go read Beej's guide. It'll get you started well enough along.
Quzah.
The Beej's guide link is not working i try that.
That odd still don't work.
http://analyser.oli.tudelft.nl/beej/mirror/net/html/
Try that one.
Thanks it work now.:)