Re: how to communicate with a server?
- Posted by Bayes63 Oct 15, 2010
- 1703 views
Thanks for the feedback guys. I've just been looking at the readme in Eunet.
quote:
"Socket programming can be either client/server or peer-to-peer. In client/server, one copy of the program listens for incoming connections, while all other copies create those connections. In peer-to-peer, all copies are both listening and connecting."
I'm totally clueless. What I want to do isn't as simple as remotely downloading a web page, is it? otherwise I could just use wget. Don't I need to use some of these functions?
HTTP routines are...
eunet_get_http_use_cookie
eunet_get_recvheader
eunet_get_sendheader
eunet_get_url
eunet_parse_recvheader
eunet_set_sendheader
eunet_set_sendheader_default
eunet_set_sendheader_useragent_msie
eunet_urlencode
DNS routines are...
eunet_dnsquery
eunet_getaddrinfo
eunet_getmxrr
eunet_getnsrr
Initialization routines are...
eunet_accept
eunet_bind
eunet_connect
eunet_get_socket_options
eunet_listen
eunet_new_socket
eunet_set_socket_options
Communication routines are...
eunet_poll
eunet_recv
eunet_recvfrom
eunet_send
eunet_sendto
Cleanup routines are...
eunet_close_socket
eunet_shutdown_socket
But I don't know which ones and in what order. The examples which come with the library aren't helping much.