利用socket实现通信
#include
#include
#pragmacomment(lib,"ws2_32.lib")
BOOLInitWinsock();
voidmain()
{
SOCKETsocket1;
InitWinsock();
structsockaddr_inlocal;
structsockaddr_infrom;
intfromlen=sizeof(from);
local.sin_family=AF_INET;
local.sin_por
用户评论