- Timestamp:
- 10/25/19 19:36:51 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-dvbapi.c
r11553 r11554 6269 6269 6270 6270 (*data_len) = tmp_data_len; 6271 (*chunksize) += msgid_size +commandsize + tmp_data_len;6271 (*chunksize) += commandsize + tmp_data_len; 6272 6272 6273 6273 cs_log_dbg(D_DVBAPI, "Got %s packet with size %" PRIu16, command,(*chunksize)); … … 6439 6439 cs_log("Client connected: '%s' (protocol version = %" PRIu16 ")", last_client_name, client_proto); 6440 6440 } 6441 6442 (*client_proto_version) = client_proto; // setting the global var according to the client 6441 dvbapi_net_send(DVBAPI_SERVER_INFO, connfd, msgid, -1, -1, NULL, NULL, NULL, client_proto); 6442 6443 // now the protocol handshake is complete set correct version so all further packets are sent with correct message id. 6444 (*client_proto_version) = client_proto; 6445 6446 // setting the global var according to the client 6443 6447 last_client_proto_version = client_proto; 6444 6445 // as a response we are sending our info to the client:6446 dvbapi_net_send(DVBAPI_SERVER_INFO, connfd, msgid, -1, -1, NULL, NULL, NULL, client_proto);6447 6448 break; 6448 6449 } … … 7135 7136 { 7136 7137 unhandled_buf_used[i] = 0; 7138 client_proto_version[i] = 0; // reset protocol, next client could old protocol. 7139 last_client_proto_version = 0; 7137 7140 // client disconnects, stop all assigned decoding 7138 7141 cs_log_dbg(D_DVBAPI, "Socket %d reported connection close", connfd);
Note:
See TracChangeset
for help on using the changeset viewer.