source: ntrip/trunk/BNS/bnscaster.h@ 1065

Last change on this file since 1065 was 1065, checked in by mervart, 16 years ago

* empty log message *

File size: 619 bytes
Line 
1#ifndef BNSCASTER_H
2#define BNSCASTER_H
3
4#include <QtNetwork>
5
6class t_bnscaster : public QObject {
7 Q_OBJECT
8 public:
9 t_bnscaster(const QString& mountpoint);
10 virtual ~t_bnscaster();
11 void open();
12 void write(char* buffer, unsigned len);
13 void printAscii(const QString& line);
14 bool used() {return _outSocket || _outFile;}
15
16 signals:
17 void error(const QByteArray msg);
18 void newMessage(const QByteArray msg);
19
20 private:
21 QString _mountpoint;
22 QTcpSocket* _outSocket;
23 int _outSocketOpenTrial;
24 QDateTime _outSocketOpenTime;
25 QFile* _outFile;
26 QTextStream* _outStream;
27};
28
29#endif
Note: See TracBrowser for help on using the repository browser.