{"id":30246,"date":"2026-02-02T09:00:29","date_gmt":"2026-02-02T00:00:29","guid":{"rendered":"https:\/\/blog.agentsoft.co.kr\/index.php\/2026\/02\/02\/30246\/"},"modified":"2026-02-02T09:00:29","modified_gmt":"2026-02-02T00:00:29","slug":"%eb%84%a4%ed%8a%b8%ec%9b%8c%ed%81%ac-%ed%94%84%eb%a1%9c%ea%b7%b8%eb%9e%98%eb%b0%8d_%ed%8c%8c%ec%9d%bc%ec%a0%84%ec%86%a1-%ed%94%84%eb%a1%9c%ea%b7%b8%eb%9e%a8-%ec%9e%91%ec%84%b1%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/blog.agentsoft.co.kr\/index.php\/2026\/02\/02\/30246\/","title":{"rendered":"\ub124\ud2b8\uc6cc\ud06c \ud504\ub85c\uadf8\ub798\ubc0d_\ud30c\uc77c\uc804\uc1a1 \ud504\ub85c\uadf8\ub7a8 \uc791\uc131\ud558\uae30"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/image4.happycampus.com\/Production\/thumbnail\/2024\/04\/20\/data29752341-0001.jpg\"><img decoding=\"async\" src=\"https:\/\/image4.happycampus.com\/Production\/thumbnail\/2024\/04\/20\/data29752341-0002.jpg\"><\/p>\n<p><strong>\ubaa9\ucc28<\/strong><\/p>\n<p>1. \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uc11c \uc11c\ubc84\ub85c \ud30c\uc77c\uc744 \uc804\uc1a1\ud558\ub294 \ucf54\ub4dc \uc791\uc131<br \/>\n1) \ud074\ub77c\uc774\uc5b8\ud2b8<br \/>\n2) \uc11c\ubc84<\/p>\n<p>2. \uc2e4\ud589\ud654\uba74<\/p>\n<p><strong>\ubcf8\ubb38\ub0b4\uc6a9<\/strong><\/p>\n<p>\/* client.c *\/<\/p>\n<p>#include <stdio.h><br \/>\n#include <stdlib.h><br \/>\n#include <fcntl.h><br \/>\n#include <string.h><br \/>\n#include <unistd.h><br \/>\n#include <arpa\/inet.h><br \/>\n#include <sys\/socket.h><br \/>\n#include <sys\/types.h><br \/>\n#include <netinet\/in.h><\/p>\n<p>void error_handling(char *message);<br \/>\nint main(int argc, char* argv[]){<\/p>\n<p>\tint serv_sock, fd;<br \/>\n    \tint str_len, len;<br \/>\n\tstruct sockaddr_in serv_addr;<br \/>\n\tchar message[30], buf[BUFSIZ];<br \/>\n    \tFILE* file = NULL;<\/p>\n<p>\tif(argc!=3){<br \/>\n\t\tprintf(&#8220;Usage : %s <IP> <PORT> \\n&#8221;, argv[0]);<br \/>\n\t\texit(1);<br \/>\n\t}<\/p>\n<p>\tserv_sock = socket(PF_INET, SOCK_STREAM, 0);<\/p>\n<p>\tif(serv_sock == -1)<br \/>\n\t\terror_handling(&#8220;socket() error&#8221;);<\/p>\n<p>\tmemset(&#038;serv_addr, 0, sizeof(serv_addr));<br \/>\n\tserv_addr.sin_family=AF_INET;<br \/>\n\tserv_addr.sin_addr.s_addr=inet_addr(argv[1]);<br \/>\n\tserv_addr.sin_port=htons(atoi(argv[2]));<\/p>\n<p>\tif(connect(serv_sock, (struct sockaddr*)&#038;serv_addr, sizeof(serv_addr))==-1)<br \/>\n\t\terror_handling(&#8220;connect() error!&#8221;);<\/p>\n<p>    \/\/ test<br \/>\n\tstr_len=read(serv_sock, message, sizeof(message)-1);<\/p>\n<p>\ucd9c\ucc98 : <a href=\"https:\/\/www.happycampus.com\/report-doc\/29752341\/\" target=\"_blank\">\ud574\ud53c\ucea0\ud37c\uc2a4<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ubaa9\ucc28 1. \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uc11c \uc11c\ubc84\ub85c \ud30c\uc77c\uc744 \uc804\uc1a1\ud558\ub294 \ucf54\ub4dc \uc791\uc131 1) \ud074\ub77c\uc774\uc5b8\ud2b8 2) \uc11c\ubc84 2. \uc2e4\ud589\ud654\uba74 \ubcf8\ubb38\ub0b4\uc6a9 \/* client.c *\/ #include #include #include #include #include #include #include #include #include void error_handling(char *message); int main(int argc, char* argv[]){ int serv_sock, fd; int str_len, len; struct sockaddr_in serv_addr; char message[30], buf[BUFSIZ]; FILE* file = NULL; if(argc!=3){ printf(&#8220;Usage : %s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20728,1444,37735],"class_list":["post-30246","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-20728","tag-1444","tag-37735"],"_links":{"self":[{"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/posts\/30246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/comments?post=30246"}],"version-history":[{"count":0,"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/posts\/30246\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/media?parent=30246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/categories?post=30246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.agentsoft.co.kr\/index.php\/wp-json\/wp\/v2\/tags?post=30246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}