// try to connect to server
if ((Status = connect(sock_server, &serverSockAddr, sizeof(serverSockAddr))) < 0)
{
SockSend(sock_client, "404 Host Not Found\n\n", 20);
SockClose(sock_client);
return 1;
}
// send client's req to server
SockSend(sock_server, buf, strlen(buf));
以上是代碼connect
到遠程服務器沒有代理,我該怎麼辦呢與代理?如何在win32 API中使用代理連接到遠程服務器?