Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

shibsp::SocketListener Class Reference

Berkeley Socket-based ListenerService implementation. More...

#include <shibsp/remoting/impl/SocketListener.h>

Inheritance diagram for shibsp::SocketListener:

shibsp::ListenerService shibsp::Remoted List of all members.

Public Types

typedef int ShibSocket

Public Member Functions

 SocketListener (const xercesc::DOMElement *e)
 OFF
DDF send (const DDF &in)
 Send a remoted message and return the response.
bool init (bool force)
 OutOfProcess servers can implement server-side initialization that should occur before daemonization.
bool run (bool *shutdown)
 OutOfProcess servers can implement server-side transport handling by calling the run method and supplying a flag to monitor for shutdown.
void term ()
 OutOfProcess servers can implement server-side termination/cleanup.
virtual bool create (ShibSocket &s) const =0
virtual bool connect (ShibSocket &s) const =0
virtual bool bind (ShibSocket &s, bool force=false) const =0
virtual bool accept (ShibSocket &listener, ShibSocket &s) const =0
virtual bool close (ShibSocket &s) const =0
virtual int send (ShibSocket &s, const char *buf, int len) const =0
virtual int recv (ShibSocket &s, char *buf, int buflen) const =0

Public Attributes

bool m_catchAll

Protected Member Functions

bool log_error () const

Protected Attributes

xmltooling::logging::Category * log

Friends

class ServerThread

Detailed Description

Berkeley Socket-based ListenerService implementation.


Member Function Documentation

bool shibsp::SocketListener::init (  bool  force  )  [virtual]
 

OutOfProcess servers can implement server-side initialization that should occur before daemonization.

The parameter applies to implementations that can detect and remove the results of ungraceful shutdowns of previous executions and continue successfully. File-based sockets are the most common example.

Parameters:
force true iff remnant network state should be forcibly cleared
Returns:
true iff the service initialization was successful

Reimplemented from shibsp::ListenerService.

bool shibsp::SocketListener::run (  bool *  shutdown  )  [virtual]
 

OutOfProcess servers can implement server-side transport handling by calling the run method and supplying a flag to monitor for shutdown.

Parameters:
shutdown pointer to flag that caller will set when shutdown is required
Returns:
true iff the service execution was successful

Implements shibsp::ListenerService.

DDF shibsp::SocketListener::send (  const DDF &  in  )  [virtual]
 

Send a remoted message and return the response.

Parameters:
in input message to send
Returns:
response from remote service

Implements shibsp::ListenerService.


The documentation for this class was generated from the following file:
Generated on Tue Jun 23 22:41:31 2009 for shibboleth-2.2 by  doxygen 1.3.9.1