파일전송 프로그램 만드는중에...
#include <stdio.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <netdb.h>
#define PORT 8888
#define BUFSIZE 1024
int main(int argc, char **argv)
{
int serv_sock, clnt_sock,fd,len,str;
int filesize[128];
int buf[BUFSIZE];
long total;
struct sockaddr_in server;
struct