#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <NETINET/in.h>
#include <ERRNO.H>
#include <PTHREAD.H>
#define MYPORT 8080
#define STRLEN 1024
void *Recv(void * arg1)
{
int i,ret;
int outp=0;
int outfd=*(int *)arg1;
char buf[STRLEN];
while(1)
{
memset(buf,0,STRLEN);
ret=recv(outfd,buf,STRLEN,0);
if(ret>0)......
阅读全文