TCP server that listens for connections and spawns new ClientSockets. More...
#include <graspitServer.h>
Public Member Functions | |
GraspItServer (Q_UINT16 port, int backlog=1, QObject *parent=0, const char *name=0) | |
void | newConnection (int socket) |
~GraspItServer () |
TCP server that listens for connections and spawns new ClientSockets.
The server is a subclass of the QT QServerSocket and listens on a particular port and if a connection is requested, it creates a new ClientSocket, which will handle all communication.
Definition at line 135 of file graspitServer.h.
GraspItServer::GraspItServer | ( | Q_UINT16 | port, | |
int | backlog = 1 , |
|||
QObject * | parent = 0 , |
|||
const char * | name = 0 | |||
) |
This is not complete yet.
void ClientSocket::readTorques() { QString line; line = readLine(); int numDOF = line.toInt();
if (numDOF < 0) {} //unused parameter warning }
Starts a TCP server that listens on port port. backlog specifies the number of pending connections the server can have.
Definition at line 634 of file graspitServer.cpp.
GraspItServer::~GraspItServer | ( | ) | [inline] |
Stub
Definition at line 145 of file graspitServer.h.
void GraspItServer::newConnection | ( | int | socket | ) |
Creates a new ClientSocket to handle communication with this client.
Definition at line 647 of file graspitServer.cpp.