Discussion Locked

Proxy Server Connection using VC++

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How to connect vc++ client to the server through the proxy server?

Presently the following code is used to connect directly to the server.

void CMySocket::connection()
{
int temp1;
sockstrct1 = socket (AF_INET, SOCK_STREAM,0);
struct sockaddr_in addrServer;
addrServer.sin_family = AF_INET;
addrServer.sin_port = htons (5000);
addrServer.sin_addr.s_addr=inet_addr("204.23.13.200");
temp1 = connect (sockstrct1,(LPSOCKADDR) &addrServer,sizeof (addrServer));
}

1 reply

by james_randy

If you are still tackling this problem, perhaps you should consider calling your local super-hero.

This discussion is closed to new replies.