14 #include "networkmod.h" 35 bool listen(
const char* host,
int port=0);
37 bool isListening()
const;
41 bool hasPendingConnections()
const;
42 int write(
int id,
const char*);
44 int write(
int id,
const IOPar&);
46 void read(
int id,
IOPar&)
const;
47 const char* errorMsg()
const;
49 Socket* getSocket(
int id);
50 const Socket* getSocket(
int id)
const;
55 mQtclass(QTcpSocket)* nextPendingConnection();
58 bool waitForNewConnection(
int msec);
64 void notifyNewConnection();
75 friend class mQtclass(QTcpServerComm);
#define mExpClass(module)
Definition: commondefs.h:157
Definition: qtcpservercomm.h:24
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
#define mQtclass(cls)
Definition: commondefs.h:232
Definition: jobcommunic.h:22
mFDQtclass(QTcpSocket) mFDQtclass(QTcpServer) mFDQtclass(QTcpServerComm) namespace Network
Definition: netserver.h:18
Set of pointers to objects.
Definition: commontypes.h:28
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
BufferString errmsg_
Definition: horizontracker.h:117
Notifier with automatic capsule creation.
Definition: notify.h:166