|
nbsp; /*
else got a reply ...*/
wsprintf((LPSTR)prbuf,
"Server: %s\n", (LPSTR) ReplyBuffer);
SetDlgItemText(hOurDlg,
IDD_COMMENT, prbuf);
break;
}
/* end while(1) */
/* All done */
return bytes_sent;
}
/* eof */
/*
* 文件名: ULISTEN.C
*/
#include "wshout.h"
/* MSC Include files: */
#include <stdio.h>
#include <io.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
/* Returns the number of bytes written */
long UReadData(SOCKET hSock, HWND hOurDlg,
int read_len)
{
static char ReadBuf[BUF_SIZE];
static char SendBuf[512];
&n |