Changeset 1345 in ntrip for trunk/BNC/bncsocket.h
- Timestamp:
- Dec 27, 2008, 12:23:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncsocket.h
r1344 r1345 4 4 #include <QtNetwork> 5 5 6 class bncSocket : public QIODevice { 7 Q_OBJECT 6 class bncSocket : public QObject { 8 7 9 8 public: … … 11 10 ~bncSocket(); 12 11 13 void connectToHost(const QString &hostName, quint16 port, 14 OpenMode mode = QIODevice::ReadWrite); 15 16 bool waitForConnected(int msecs = 30000); 17 12 void close(); 13 qint64 bytesAvailable() const; 14 bool canReadLine() const; 15 QByteArray readLine(qint64 maxlen = 0); 16 bool waitForReadyRead(int msecs = 30000); 17 qint64 read(char *data, qint64 maxlen); 18 qint64 write(const char *data, qint64 len); 19 bool waitForBytesWritten(int msecs = 30000); 20 void connectToHost(const QString &hostName, quint16 port, 21 QIODevice::OpenMode mode = QIODevice::ReadWrite); 22 bool waitForConnected(int msecs = 30000); 18 23 QAbstractSocket::SocketState state() const; 19 20 protected:21 virtual qint64 readData(char* data, qint64 maxSize);22 virtual qint64 writeData(const char* data, qint64 maxSize);23 24 signals:25 26 private slots:27 24 28 25 private:
Note:
See TracChangeset
for help on using the changeset viewer.