![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: rtp.cpp
- Revision:
- 109:a5b8264ffbbc
- Parent:
- 89:0fe315117b00
- Child:
- 119:ee6a53069455
diff -r 18a3702650f3 -r a5b8264ffbbc rtp.cpp --- a/rtp.cpp Wed Mar 18 13:33:54 2015 +0000 +++ b/rtp.cpp Tue Apr 07 14:27:44 2015 +0000 @@ -111,4 +111,23 @@ size_t RTP::header_size( void ){ //if( rtp_header != NULL ) return rtp_header->size(); return ( rtp_header != NULL ) ? rtp_header->size() : 0; +} + +int RTP::print_yourself ( void ) +{ + send_msg("buffer :: %p", ( void * ) buffer ); + send_msg("pkg :: %p", ( void * ) pkg ); + send_msg("rtp_header :: %p", ( void * ) rtp_header ); + send_msg("rtp_body :: %p", ( void * ) rtp_body ); + if ( rtp_header != NULL ) + { + send_msg("ss_id :: %d", rtp_header -> get_ss_id () ); + send_msg("seq_number :: %d", rtp_header -> get_seq_number () ); + send_msg("timestamp :: %d", rtp_header -> get_timestamp () ); + } + else + { + send_msg("Objeto rtp_header nao vinculado"); + } + return ( sizeof( RTP ) ); } \ No newline at end of file