#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?
#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?
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?
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
As stated, go read Beej's guide. It'll get you started well enough along.
Quzah.
Hope is the first step on the road to disappointment.
http://analyser.oli.tudelft.nl/beej/mirror/net/html/
Try that one.