°ïæ¿´¿´ÎÊÌâ
ÎÒдµÄÒ»¸öÉèÏëÍ·²É¼¯Êý¾Ý¾¹ýÍøÂçÊÕ·¢µÄ³ÌÐò¡£!{_kU!_]$ic6@T%Y2e"L
/* main º¯Êý */ eovFr(Gm
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>/s+Q8p g&il#q
#include <netinet/in.h>8Mw5h+["U:`2t]b
#include <sys/socket.h>
#include <sys/wait.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <sys/types.h>*Sg*vtY1D"H(wF
7c7XZr$N)PGGm
#include "video.h"/[ lr1F*WXGY
#include "main.h"G2~,b;@S3v+z
#include "getpic.h"D'pU}%d)Z!Y;k8T
+Eu UTJy-}6mD
#define MAXBUF (1024*20)
int main(int argc, char **argv)
{-IrA+MM.hF;n"c
int sockfd, new_fd;
socklen_t len;
struct sockaddr_in my_addr, their_addr;
unsigned int myport, lisnum;
FILE *fp; /* target file */$z U"eo4Z,DV}
char* filename = "grab.jpeg"; bM v/zUdA
char *buf = NULL;}fnH/SH_
int file_size = 0;:?0C,B8s jN7Zj%n
fd_set rfds;
struct timeval tv;%_9NDQ8@"G9[.]/n*Z(J E
int retval, maxfd = -1;
Gz D,h.fPx$I
if (argv[1]) FM({I%stQCO
myport = atoi(argv[1]);
else