#include <BALL/VIEW/KERNEL/serverWidget.h>
Public Member Functions | |
BALLViewServer (ServerWidget *parent, Size port, bool restart=true) | |
void | sendObject () throw (NotCompositeObject) |
virtual void | run () |
virtual void | handleConnection () |
void | setLocked (bool is_locked) |
Protected Types | |
typedef HashMap< unsigned long, Composite * > | CompositeHashMap |
Protected Attributes | |
ServerWidget * | parent_widget_ |
Composite * | received_composite_ |
CompositeHashMap | composite_hashmap_ |
Size | port_ |
bool | is_locked_ |
BALLView server thread. This class handles the incoming connections for the simple BALL-protocol for sending composites over the net.
Definition at line 90 of file serverWidget.h.
typedef HashMap<unsigned long, Composite *> BALL::VIEW::ServerWidget::BALLViewServer::CompositeHashMap [protected] |
Definition at line 124 of file serverWidget.h.
BALL::VIEW::ServerWidget::BALLViewServer::BALLViewServer | ( | ServerWidget * | parent, | |
Size | port, | |||
bool | restart = true | |||
) |
virtual void BALL::VIEW::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.
NotCompositeObject | thrown if another object than Composite object is received |
Reimplemented from BALL::TCPServer.
virtual void BALL::VIEW::ServerWidget::BALLViewServer::run | ( | ) | [virtual] |
Reimplemented from BALL::TCPServerThread.
void BALL::VIEW::ServerWidget::BALLViewServer::sendObject | ( | ) | throw (NotCompositeObject) |
private methodes used for reacting to client requests.
void BALL::VIEW::ServerWidget::BALLViewServer::setLocked | ( | bool | is_locked | ) |
Used for communication with the parent
Definition at line 125 of file serverWidget.h.
Definition at line 128 of file serverWidget.h.
Definition at line 121 of file serverWidget.h.
Size BALL::VIEW::ServerWidget::BALLViewServer::port_ [protected] |
Reimplemented from BALL::TCPServer.
Definition at line 127 of file serverWidget.h.
Definition at line 122 of file serverWidget.h.