[참고 : 멀티플렉싱 receiver 테스트 ] 멀티플렉싱 sender 테스트를 위한 코드로 udp socket, select, 그리고 IPC(fifo) 를 썼다. -------------------------------------------------------- sender.c #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <sys/socket.h> // for socket(), bind(), connet() #include <arpa/inet.h> // for sockaddr_in, inet_ntoa() #include <pthread.h> typedef int SOCKET; #define NET_INVALID_SOCKET -1 #define NET_SOCKET_ERROR -1 #define MAXCONN 10 #define MAX_BUF_SIZE 500 #define FIFO_NAME "my_test" int main(void) { char s[300] = "FIFO_TEST_MSG_FIFO_TEST_MSG_FIFO_TEST_MSG_FIFO_TEST_MSG_FIFO_TEST_MSG_\ FIFO_TEST_MSG_FIFO_TEST_MSG_FIFO_TEST_MSG_FIFO_TEST_MSG_FIFO_TEST_MSG_FIFO_TEST_MSG_\ FIFO_TEST_MSG_FIFO_TEST_MSG_FIFO_TEST_MSG_FIFO_TEST_MSG_FIFO_TEST_MSG_FIFO_...