메시지 블록 생성 예제
* copy 함수 사용.
ACE_Message_Block * mb=0; ACE_NEW_REUTRN( mb, ACE_Message_Block( 128 ), -1 ); const char * data = "testData"; mb->copy( data, ACE_OS::strlen( data ) + 1 );
* wr_ptr 사용
ACE_Message_Block * mb=0; ACE_NEW_REUTRN( mb, ACE_Message_Block( 128 ), -1 ); const char * data = "testData"; ACE_OS::sprintf( mb->wr_ptr(), data ); mb->wr_ptr( ACE_OS::strlen(data)+1 );