Design of the Fake Server Library
Other versions of this page are also available for the following:
- Windows Embedded CE 6.0 R3
8/27/2008
The fake server library is a native code component that enables communication with the sockets. It starts a listener thread on the specified port and binds both the IPv6 and IPv4 interfaces to it. When it receives a connection from a client, it spawns a new thread to handle the connection. Upon receiving the data from the socket it invokes the callback with the data that was received. It also passes in a fake response interface pointer in the callback function used by the callers to set the response to be sent over the socket. The callback function is invoked inline in the context of the connection thread. When the callback function returns the data is sent over the socket to the client.
The fake server library exposes its interfaces in an IDL file that applications can use. The structures and interfaces exposed by the IDL are described below
In This Section
- Structures in the Fake Server Library
Describes the structures defined in the Fake Server library
- Callback Function in the Fake Server Library
Describes the CallBackFunction function in the Fake Server library
- Interface in the Fake Server Library
Describes the IFakeServerResponse interface in the Fake Server library
- Functions in the Fake Server Library
Describes the contents of the managed Fake Server libraries