Changeset 1528 in ntrip


Ignore:
Timestamp:
Jan 21, 2009, 1:14:16 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncnetqueryrtp.cpp

    r1522 r1528  
    8686  // Default scheme
    8787  // --------------
    88   QUrl urlLoc(url);
    89   urlLoc.setScheme("rtsp");
     88  _url = url;
     89  _url.setScheme("rtsp");
    9090
    9191  // Connect the Socket
     
    9696 
    9797  if ( proxyHost.isEmpty() ) {
    98     _socket->connectToHost(urlLoc.host(), urlLoc.port());
     98    _socket->connectToHost(_url.host(), _url.port());
    9999  }
    100100  else {
     
    105105  // --------------
    106106  if (_socket->waitForConnected(timeOut)) {
    107     QString uName = QUrl::fromPercentEncoding(urlLoc.userName().toAscii());
    108     QString passW = QUrl::fromPercentEncoding(urlLoc.password().toAscii());
     107    QString uName = QUrl::fromPercentEncoding(_url.userName().toAscii());
     108    QString passW = QUrl::fromPercentEncoding(_url.password().toAscii());
    109109    QByteArray userAndPwd;
    110110   
     
    123123
    124124    QByteArray reqStr;
    125     reqStr = "SETUP " + urlLoc.toEncoded() + " RTSP/1.0\r\n"
     125    reqStr = "SETUP " + _url.toEncoded() + " RTSP/1.0\r\n"
    126126           + "CSeq: 1\r\n"
    127127           + "Ntrip-Version: Ntrip/2.0\r\n"
     
    178178          }
    179179
    180           reqStr = "PLAY " + urlLoc.toEncoded() + " RTSP/1.0\r\n"
     180          reqStr = "PLAY " + _url.toEncoded() + " RTSP/1.0\r\n"
    181181                 + "CSeq: 2\r\n"
    182182                 + "Session: " + session + "\r\n"
     
    192192              while (!line.isEmpty()) {
    193193                if (line.indexOf("200 OK") != -1) {
    194                   emit newMessage(urlLoc.host().toAscii() +
    195                                   urlLoc.path().toAscii() +
     194                  emit newMessage(_url.host().toAscii() +
     195                                  _url.path().toAscii() +
    196196                                  ": UDP connection established", true);
    197197                  return;
Note: See TracChangeset for help on using the changeset viewer.