#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 419 of file Name_Request_Reply.cpp. References ACE_TRACE, errnum(), length(), and msg_type().
|
|
Create a message.
Definition at line 431 of file Name_Request_Reply.cpp. References ACE_TRACE, errnum(), length(), and msg_type().
|
|
Decode a message after reception.
Definition at line 536 of file Name_Request_Reply.cpp. References ACE_NTOHL, 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 548 of file Name_Request_Reply.cpp. References ACE_DEBUG, ACE_TEXT, ACE_TRACE, errnum(), LM_DEBUG, and msg_type().
00549 { 00550 #if defined (ACE_HAS_DUMP) 00551 ACE_TRACE ("ACE_Name_Reply::dump"); 00552 ACE_DEBUG ((LM_DEBUG, 00553 ACE_TEXT ("*******\nlength = %d\nerrnum = %d"), 00554 this->length (), 00555 this->errnum ())); 00556 ACE_DEBUG ((LM_DEBUG, 00557 ACE_TEXT ("type = "))); 00558 switch (this->msg_type ()) 00559 { 00560 case 0: 00561 ACE_DEBUG ((LM_DEBUG, 00562 ACE_TEXT ("SUCCESS\n"))); 00563 break; 00564 case -1: 00565 ACE_DEBUG ((LM_DEBUG, 00566 ACE_TEXT ("FAILURE\n"))); 00567 break; 00568 default: 00569 ACE_DEBUG ((LM_DEBUG, 00570 ACE_TEXT ("<unknown type> = %d\n"), 00571 this->msg_type ())); 00572 break; 00573 } 00574 #endif /* ACE_HAS_DUMP */ 00575 } |
|
Encode the message before transfer.
Definition at line 520 of file Name_Request_Reply.cpp. References ACE_HTONL, ACE_TRACE, ACE_Name_Reply::Transfer::errno_, length(), ACE_Name_Reply::Transfer::length_, and ACE_Name_Reply::Transfer::type_.
00521 { 00522 ACE_TRACE ("ACE_Name_Reply::encode"); 00523 int len = this->length (); // Get length *before* marshaling. 00524 00525 this->transfer_.length_ = ACE_HTONL (this->transfer_.length_); 00526 this->transfer_.type_ = ACE_HTONL (this->transfer_.type_); 00527 this->transfer_.errno_ = ACE_HTONL (this->transfer_.errno_); 00528 buf = (void *) &this->transfer_; 00529 return len; 00530 } |
|
Definition at line 510 of file Name_Request_Reply.cpp. References ACE_TRACE, and ACE_Name_Reply::Transfer::errno_.
|
|
Definition at line 503 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 442 of file Name_Request_Reply.cpp. References ACE_TRACE, and length().
|
|
Definition at line 458 of file Name_Request_Reply.cpp. References ACE_TRACE, and ACE_Name_Reply::Transfer::length_.
|
|
Definition at line 451 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 474 of file Name_Request_Reply.cpp. References ACE_TRACE, and ACE_Name_Reply::Transfer::type_.
|
|
Definition at line 467 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 492 of file Name_Request_Reply.cpp. References ACE_TRACE, and ACE_Name_Reply::Transfer::type_.
|
|
Definition at line 483 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. |