[code:1]#include <sys/time.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/poll.h>
// 받아들일수 있는 클라이언트의 크기
#define OPEN_MAX 600
int main(int argc, char **argv)
{
int server_sockfd, client_sockfd, sockfd, udp_sock;
int i, maxi;
int nread;
int state = 0;
socklen_t clilen;
struct sockaddr_in clientaddr, serveraddr, udpserveraddr;