- Timestamp:
- Mar 5, 2009, 10:43:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncnetqueryudp.cpp
r1729 r1730 75 75 if (datagram.size() > 12) { 76 76 outData.append(datagram.mid(12)); 77 cout << outData.data() << endl;78 77 } 79 78 } … … 133 132 //// } 134 133 135 cout << "reqStr > " << reqStr.data() << "<" << endl;136 137 134 char rtpbuffer[12 + reqStr.size()]; 138 135 rtpbuffer[0] = 128; 139 136 rtpbuffer[1] = 97; 140 rtpbuffer[2] = 0; 141 rtpbuffer[3] = 0; 142 rtpbuffer[4] = 0; 143 rtpbuffer[5] = 0; 144 rtpbuffer[6] = 0; 145 rtpbuffer[7] = 0; 146 rtpbuffer[8] = 0; 147 rtpbuffer[9] = 0; 148 rtpbuffer[10] = 0; 149 rtpbuffer[11] = 0; 150 137 for (int jj = 2; jj <= 11; jj++) { 138 rtpbuffer[jj] = 0; 139 } 151 140 for (int ii = 0; ii < reqStr.size(); ii++) { 152 141 rtpbuffer[12+ii] = reqStr[ii]; 153 142 } 154 143 155 _udpSocket->writeDatagram(rtpbuffer, 12 +reqStr.size(), _address, _port);144 _udpSocket->writeDatagram(rtpbuffer, 12 + reqStr.size(), _address, _port); 156 145 } 157 146 }
Note:
See TracChangeset
for help on using the changeset viewer.