UDP / IP ã§ãã±ããã®éåä¿¡ãè¡ããµã³ãã«ã³ã¼ãã«ãªãã¾ãã 詳細ã¯ãµã³ãã«å ã®ã³ã¡ã³ããåç §ãã ããããªããæ¬ãµã³ãã«ã³ã¼ãã¯Â Solaris10 ä¸ã§åä½ç¢ºèªãè¡ã£ã¦ããã¾ãã åä¿¡å´ #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> int main(int argc, char** argv) { int sd; struct sockaddr_in addr; socklen_t sin_size; struct sockaddr_in from_addr; char buf[2048]; // åä¿¡ãããã¡ // IPv4 UDP ã®ã½ã±ãããä½æ if((sd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
{{#tags}}- {{label}}
{{/tags}}