UDP Socket Server & Client in C
SERVER
SERVER
0.Variable initialization
1.sock()
2.bind()
3.recvfrom()
4.sendto()
CLIENT
0.gethostbyname()
1.sock()
2.bzero()
4.sendto()
5.recvfrom()
You can see a coded example here udp server/client
Ref :http://stackoverflow.com/questions/1829187/udp-sockets-in-c
Other Refs:
http://www.xinotes.net/notes/note/1810/
http://gnosis.cx/publish/programming/sockets2.html
http://www.cs.rutgers.edu/~pxk/417/notes/sockets/udp.html
http://man7.org/linux/man-pages/man2/bind.2.html
http://en.wikibooks.org/wiki/C_Programming/Networking_in_UNIX
http://www.cs.cmu.edu/~srini/15-441/F01.full/www/assignments/P2/htmlsim_split/
http://www.beej.us/guide/bgnet/output/html/multipage/htonsman.html
http://www.beej.us/guide/bgnet/output/html/multipage/inet_ntoaman.html
http://www.on-time.com/rtos-32-docs/rtip-32/reference-manual/socket-api/sendto.htm
http://pic.dhe.ibm.com/infocenter/tpfhelp/current/index.jsp?topic=%2Fcom.ibm.ztpf-ztpfdf.doc_put.cur%2Fgtpc2%2Fcpp_sendto.html
http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/chapter-section-using-api.html
http://sd12582000.weebly.com/1/post/2013/04/linux-socket-udp.html
http://www.microhowto.info/howto/listen_for_and_receive_udp_datagrams_in_c.html
http://www.microhowto.info/howto/send_a_udp_datagram_in_c.html
http://stenlyho.blogspot.tw/2008/08/udp-serverclient.html
http://stackoverflow.com/questions/15054703/udp-sockets-in-c-client1-to-server-to-client2
http://stackoverflow.com/questions/20271253/why-arent-i-receiving-the-udp-packets-when-using-winsock
http://stackoverflow.com/questions/9863609/destination-unreachable-port-unreachable-when-sending-data-to-udp-socket-o
http://hugedream.blogspot.tw/2009/11/soreuseaddr.html
http://docstore.mik.ua/orelly/networking_2ndEd/tcp/ch02_06.htm
沒有留言:
張貼留言