#include <Name_Request_Reply.h>
Collaboration diagram for ACE_Name_Reply:
Public Types | |
enum | Constants { MAX_NAME_LENGTH = MAXPATHLEN + 1 } |
Public Member Functions | |
ACE_Name_Reply (void) | |
Default constructor. | |
ACE_Name_Reply (ACE_UINT32 type, ACE_UINT32 err) | |
Create a message. | |
void | init (void) |
ACE_UINT32 | length (void) const |
void | length (ACE_UINT32) |
ACE_INT32 | msg_type (void) const |
void | msg_type (ACE_INT32) |
ACE_INT32 | status (void) const |
void | status (ACE_INT32) |
ACE_UINT32 | errnum (void) const |
void | errnum (ACE_UINT32) |
int | encode (void *&) |
Encode the message before transfer. | |
int | decode (void) |
Decode a message after reception. | |
void | dump (void) const |
Print out the values of the message for debugging purposes. | |
Private Attributes | |
Transfer | transfer_ |
Transfer buffer. |
This class is implemented to minimize data copying. In particular, all marshaling is done in situ...
Definition at line 196 of file Name_Request_Reply.h.
|
Definition at line 199 of file Name_Request_Reply.h.
00200 { 00201 /// Class-specific constant values. 00202 MAX_NAME_LENGTH = MAXPATHLEN + 1 00203 }; |
|
Default constructor.
Definition at line 410 of file Name_Request_Reply.cpp. References ACE_TRACE, errnum(), length(), and msg_type().
|
|
Create a message.
Definition at line 422 of file Name_Request_Reply.cpp. References ACE_TRACE, errnum(), length(), and msg_type().
|
|
Decode a message after reception.
Definition at line 527 of file Name_Request_Reply.cpp. References ACE_TRACE, ACE_Name_Reply::Transfer::errno_, ACE_Name_Reply::Transfer::length_, and ACE_Name_Reply::Transfer::type_.
|
|
Print out the values of the message for debugging purposes.
Definition at line 539 of file Name_Request_Reply.cpp. References ACE_DEBUG, ACE_LIB_TEXT, ACE_TRACE, errnum(), LM_DEBUG, and msg_type().
00540 { 00541 #if defined (ACE_HAS_DUMP) 00542 ACE_TRACE ("ACE_Name_Reply::dump"); 00543 ACE_DEBUG ((LM_DEBUG, 00544 ACE_LIB_TEXT ("*******\nlength = %d\nerrnum = %d"), 00545 this->length (), 00546 this->errnum ())); 00547 ACE_DEBUG ((LM_DEBUG, 00548 ACE_LIB_TEXT ("type = "))); 00549 switch (this->msg_type ()) 00550 { 00551 case 0: 00552 ACE_DEBUG ((LM_DEBUG, 00553 ACE_LIB_TEXT ("SUCCESS\n"))); 00554 break; 00555 case -1: 00556 ACE_DEBUG ((LM_DEBUG, 00557 ACE_LIB_TEXT ("FAILURE\n"))); 00558 break; 00559 default: 00560 ACE_DEBUG ((LM_DEBUG, 00561 ACE_LIB_TEXT ("<unknown type> = %d\n"), 00562 this->msg_type ())); 00563 break; 00564 } 00565 #endif /* ACE_HAS_DUMP */ 00566 } |
|
Encode the message before transfer.
Definition at line 511 of file Name_Request_Reply.cpp. References ACE_TRACE, ACE_Name_Reply::Transfer::errno_, length(), ACE_Name_Reply::Transfer::length_, and ACE_Name_Reply::Transfer::type_.
00512 { 00513 ACE_TRACE ("ACE_Name_Reply::encode"); 00514 int len = this->length (); // Get length *before* marshaling. 00515 00516 this->transfer_.length_ = htonl (this->transfer_.length_); 00517 this->transfer_.type_ = htonl (this->transfer_.type_); 00518 this->transfer_.errno_ = htonl (this->transfer_.errno_); 00519 buf = (void *) &this->transfer_; 00520 return len; 00521 } |
|
Definition at line 501 of file Name_Request_Reply.cpp. References ACE_TRACE, and ACE_Name_Reply::Transfer::errno_.
|
|
Definition at line 494 of file Name_Request_Reply.cpp. References ACE_TRACE, and ACE_Name_Reply::Transfer::errno_. Referenced by ACE_Name_Reply(), and dump().
|
|
Initialize length_ in order to ensure correct byte ordering before a reply is sent. Definition at line 433 of file Name_Request_Reply.cpp. References ACE_TRACE, and length().
|
|
Definition at line 449 of file Name_Request_Reply.cpp. References ACE_TRACE, and ACE_Name_Reply::Transfer::length_.
|
|
Definition at line 442 of file Name_Request_Reply.cpp. References ACE_TRACE, and ACE_Name_Reply::Transfer::length_. Referenced by ACE_Name_Reply(), encode(), and init().
|
|
Definition at line 465 of file Name_Request_Reply.cpp. References ACE_TRACE, and ACE_Name_Reply::Transfer::type_.
|
|
Definition at line 458 of file Name_Request_Reply.cpp. References ACE_TRACE, and ACE_Name_Reply::Transfer::type_. Referenced by ACE_Name_Reply(), and dump().
|
|
Definition at line 483 of file Name_Request_Reply.cpp. References ACE_TRACE, and ACE_Name_Reply::Transfer::type_.
|
|
Definition at line 474 of file Name_Request_Reply.cpp. References ACE_TRACE, and ACE_Name_Reply::Transfer::type_.
|
|
Transfer buffer.
Definition at line 258 of file Name_Request_Reply.h. |