BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | Protected Types | Protected Attributes
BALL::VIEW::ServerWidget::BALLViewServer Class Reference

#include <BALL/VIEW/KERNEL/serverWidget.h>

Inheritance diagram for BALL::VIEW::ServerWidget::BALLViewServer:
BALL::VIEW::BALLThread BALL::TCPServerThread QThread BALL::TCPServer QThread

List of all members.

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

ServerWidgetparent_widget_
Compositereceived_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.

Definition at line 90 of file serverWidget.h.


Member Typedef Documentation

Definition at line 124 of file serverWidget.h.


Constructor & Destructor Documentation


Member Function Documentation

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:
NotCompositeObjectthrown if another object than Composite object is received

Reimplemented from BALL::TCPServer.

Reimplemented from BALL::TCPServerThread.

private methodes used for reacting to client requests.

Used for communication with the parent


Member Data Documentation

Definition at line 125 of file serverWidget.h.

Definition at line 128 of file serverWidget.h.

Definition at line 121 of file serverWidget.h.

Reimplemented from BALL::TCPServer.

Definition at line 127 of file serverWidget.h.

Definition at line 122 of file serverWidget.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines