16 #include "networkmod.h" 37 bool listen(
const char* host,
int port=0);
39 bool isListening()
const;
43 bool hasPendingConnections()
const;
44 int write(
int id,
const char*);
46 int write(
int id,
const IOPar&);
48 void read(
int id,
IOPar&)
const;
49 const char* errorMsg()
const;
51 Socket* getSocket(
int id);
52 const Socket* getSocket(
int id)
const;
57 mQtclass(QTcpSocket)* nextPendingConnection();
60 bool waitForNewConnection(
int msec);
64 static const char* sKeyPort() {
return "port"; }
65 static const char* sKeyTimeout() {
return "timeout"; }
66 static const char* sKeyKillword() {
return "kill"; }
70 void notifyNewConnection();
81 friend class mQtclass(QTcpServerComm);
#define mExpClass(module)
Definition: commondefs.h:160
Definition: qtcpservercomm.h:25
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
#define mQtclass(cls)
Definition: commondefs.h:229
Definition: jobcommunic.h:24
mFDQtclass(QTcpSocket) mFDQtclass(QTcpServer) mFDQtclass(QTcpServerComm) namespace Network
Definition: netserver.h:20
Set of pointers to objects.
Definition: commontypes.h:32
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
BufferString errmsg_
Definition: horizontracker.h:119
Notifier with automatic capsule creation.
Definition: callback.h:395