\n
Microsoft Invisible Computing

TcpServer Concrete Class

The universal listener for sockets.

Implements IListener

Subclass of CUnknown

Methods

TcpServerQueryInterface implements IUnknown.QueryInterface
Source in tcpserver.c

Determines which interfaces an object supports and returns a valid pointer to an interface.

TcpServerAddRef implements IUnknown.AddRef
Source in tcpserver.c

Increments the reference count of the object.

TcpServerRelease implements IUnknown.Release
Source in tcpserver.c

Decrements the reference count of an object. When the count goes to zero, the object is destroyed.

TcpServerListen implements IListener.Listen
Source in tcpserver.c

Start listening to incoming service requests. Call this before the Loop method.

TcpServerLoop implements IListener.Loop
Source in tcpserver.c

Loops accepting connections on a server socket. This is the main function of a listener application. After accepting a connection, the Run method passes the connection to the access policy implementation, and only passes it to the request processing code if the access policy restrictions are met.

For a concurrent server call this method multiple times from separate threads.

TcpServerApplyAccessPolicy implements IListener.ApplyAccessPolicy
Source in tcpserver.c

Examines an incoming connection and compares with a security policy. Returns an error code if a security problem is detected, otherwise returns S_OK. If an error code is returned, the implementation of the Run method must not pass the connection to the Service implementation. Currently this operation is only expected to filter based on the client identity as defined by the client's network address.

TcpServerService implements IListener.Service
Source in tcpserver.c

The actual implementation of the service provided by the listener.

TcpServerSetEndpoint implements IListener.SetEndpoint
Source in tcpserver.c

Add/remove/configure endpoint in pool of listened endpoints.

©2006 Microsoft Corporation. All rights reserved. Terms of Use Privacy Statement Accessibility End User License Agreement