please I want conveart this code to vb.net
this code is written in c++
++++++++++++++++++++++++++++++
#include
using
#pragma
#define
void
int
{
WORD version;
WSADATA wsaData;
env =
data =
FILE *out;
FILE *in;
buf[i]=
env[i]=
data[i]=
PCName[i]=
version = MAKEWORD(1,1);
WSAStartup(version,(LPWSADATA)&wsaData);
LPHOSTENT hostEntry;
in = fopen(
fscanf(in,
fclose(in);
}
cout<<
cin>>PCName;
cout<<endl<<endl;
fprintf(in,
hostEntry = gethostbyname(PCName);
WSACleanup();
SOCKET theSocket = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
SOCKADDR_IN serverInfo;
serverInfo.sin_family = PF_INET;
serverInfo.sin_addr = *((LPIN_ADDR)*hostEntry->h_addr_list);
serverInfo.sin_port = htons(8888);
rVal=connect(theSocket,(LPSOCKADDR)&serverInfo,