gethostname和gethostbyname,inet_ntoa
<br />// socketTest.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <WinSock2.h>
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
WSADATA wsData = { 0 };
int nRet = ::WSAS
原创
2010-06-04 17:11:00 ·
2680 阅读 ·
0 评论