Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: call.cpp
- Revision:
- 91:c2a86b1f8aaa
- Parent:
- 89:0fe315117b00
- Child:
- 92:92df17f538a8
diff -r 8e538571f427 -r c2a86b1f8aaa call.cpp --- a/call.cpp Wed Jan 07 21:50:46 2015 +0000 +++ b/call.cpp Thu Jan 08 23:44:08 2015 +0000 @@ -22,11 +22,13 @@ t.start(); finish.start(); rtpbuf_clear( &( this->rtpbuf ) ); + call_new_counter++; } VZ_call::~VZ_call(){ rtp_sock.close(); delete( this->rtp ); + call_delete_counter++; } char * VZ_call::get_eth_message( int * length ){ @@ -37,8 +39,6 @@ rtpbuf_next( &rtpbuf ); if( *length > 0 ){ - eth_pkg_received++; - rtpbuf_put( &rtpbuf, *length - ( __RTP_HEADER_SIZE__ + ( server2cb[ 0 ] & 0xf ) ), ( uint8_t * )server2cb + ( __RTP_HEADER_OFFSET__ + ( server2cb[ 0 ] & 0xf ) ) ); }