Forum Discussion
Altera_Forum
Honored Contributor
15 years agoWhat you're really asking is a question about socket programming. Specifically, line 417 of "simple_socket_server.c" reads:
if ((fd_listen = socket(AF_INET, SOCK_STREAM, 0)) < 0) This is where the socket is actually created. To change the socket to UDP, change the line to read: if ((fd_listen = socket(AF_INET, SOCK_DGRAM, 0)) < 0) You should refer to the NicheStack reference material: http://www.altera.com/literature/ug/nichestackref.zip Jake