Changeset 1412 in ntrip


Ignore:
Timestamp:
Dec 31, 2008, 12:57:05 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncnetqueryrtp.cpp

    r1411 r1412  
    2727////////////////////////////////////////////////////////////////////////////
    2828bncNetQueryRtp::bncNetQueryRtp() {
    29   _socket = 0;
     29  _socket    = 0;
     30  _udpSocket = 0;
    3031}
    3132
     
    3435bncNetQueryRtp::~bncNetQueryRtp() {
    3536  delete _socket;
     37  delete _udpSocket;
    3638}
    3739
     
    99101   
    100102    QByteArray clientPort = "7777"; // TODO: make it an option
     103    delete _udpSocket;
     104    _udpSocket = new QUdpSocket();
     105    _udpSocket->bind(clientPort.toInt());
    101106   
    102107    QByteArray reqStr;
     
    135140          _socket->write(reqStr, reqStr.length());
    136141
    137           cout << reqStr.data();
    138 
    139142          // Read Server Answer 2
    140143          // --------------------
Note: See TracChangeset for help on using the changeset viewer.