BALL::VIEW::ServerWidget::ServerWidget::BALLViewServer Class Reference

BALLView server thread. More...

#include <serverWidget.h>

Inheritance diagram for BALL::VIEW::ServerWidget::ServerWidget::BALLViewServer:
Inheritance graph
[legend]

List of all members.


Public Member Functions

BALLViewServer (ServerWidget *parent, Size port, bool restart=true)
void sendObject () throw (NotCompositeObject)
private methodes used for reacting to client requests.
virtual void run ()
virtual void handleConnection ()
Handler for successful connections.
void setLocked (bool is_locked)
Used for communication with the parent.

Protected Types

typedef HashMap< unsigned long,
Composite * >
CompositeHashMap

Protected Attributes

ServerWidget * parent_widget_
Composite * received_composite_
CompositeHashMap composite_hashmap_
Size port_
bool is_locked_

Detailed Description

BALLView server thread.

This class handles the incoming connections for the simple BALL-protocol for sending composites over the net.


Member Function Documentation

virtual void BALL::VIEW::ServerWidget::ServerWidget::BALLViewServer::handleConnection ( ) [virtual]

Handler for successful connections.

Virtually overridden method. This method handles the socket stream. When a connection has been made, this function is automatically called through our base classes. Then, the socket stream will be passed onto the object creator and incoming objects will be received. At the moment only Composite objects will be accepted. If another object is received the exception NotCompositeObject will be thrown.

Exceptions:
NotCompositeObject thrown if another object than Composite object is received

Reimplemented from BALL::TCPServer.


Generated on Thu Aug 6 18:30:56 2009 for BALL by doxygen 1.5.8