Description: Prepared using VC++6.0 Proxy server
The principle of a.
The program s structure principle is as follows:
For every user s request ( Internet request, issued by the browser ), the program will start two threads, a local user requests to send data to the remote Internet host, another thread to the remote host response data is sent to a local request user.
Two main functions.
UserToProxyThread ( void* pParam ): it is used to put the local user request data sent to the remote host, server thread role. When receiving the local ( local area network) a user s request, it will start another own thread, to listen to the other user s request, and read out the received request data, and then start second threads ( ProxyToServer ) ( the thread used to connect to remote host ), when the remote host connection is successful, it has been read local user request data sent to remote host.
ProxyToServer ( void* pParam ), can be client service, it put the remote host to send data distri
To Search:
File list (Check if you may need any files):
新建文件夹\1.cpp
新建文件夹