Inheritance diagram for UserIdentityNegotiationSubItemAC:

Public Member Functions | |
| UserIdentityNegotiationSubItemAC () | |
| Constructor, creates an empty user identity response structure. | |
| unsigned char | pduType () const |
| Denotes that instance is part of a request (DUL_TYPEASSOCIATEAC). | |
| virtual void | clear () |
| Clears member variables and frees memory. | |
| void | setServerResponse (const char *rsp, const Uint16 &rspLen) |
| Sets server response value. | |
| Uint16 | getServerResponse (char *&targetBuffer, Uint16 &resultLen) const |
| Returns content of server response field Memory is allocated by this function and must be freed by the caller. | |
| OFCondition | streamedLength (unsigned long &length) const |
| Computes total length of item if streamed into buffer. | |
| OFCondition | stream (unsigned char *targetBuffer, unsigned long &lengthWritten) const |
| Stream the package into a byte stream for network transmission. | |
| OFCondition | parseFromBuffer (unsigned char *readBuffer, unsigned long &bytesRead, unsigned long availData) |
| Parse sub item from buffer. | |
| void | dump (STD_NAMESPACE ostream &outstream) const |
| Dump content of this user identity sub item to output stream. | |
| UserIdentityNegotiationSubItemAC & | operator= (const UserIdentityNegotiationSubItemAC &rhs) |
| Assignment operator, does a deep copy of a class instance. | |
| UserIdentityNegotiationSubItemAC (const UserIdentityNegotiationSubItemAC &rhs) | |
| Copy constructor, does a deep copy of a class instance. | |
| ~UserIdentityNegotiationSubItemAC () | |
| Destructor, frees memory. | |
Private Attributes | |
| char * | m_serverRsp |
| Buffer for server response. | |
| Uint16 | m_rspLength |
| Length of server response in bytes. | |
Definition at line 281 of file dcuserid.h.
| UserIdentityNegotiationSubItemAC::UserIdentityNegotiationSubItemAC | ( | const UserIdentityNegotiationSubItemAC & | rhs | ) |
Copy constructor, does a deep copy of a class instance.
| rhs | - [in] The class instance to copy from |
| unsigned char UserIdentityNegotiationSubItemAC::pduType | ( | ) | const [virtual] |
Denotes that instance is part of a request (DUL_TYPEASSOCIATEAC).
Implements UserIdentityNegotiationSubItem.
| virtual void UserIdentityNegotiationSubItemAC::clear | ( | ) | [virtual] |
| void UserIdentityNegotiationSubItemAC::setServerResponse | ( | const char * | rsp, | |
| const Uint16 & | rspLen | |||
| ) |
Sets server response value.
| buffer | - [in] Content of server response value (copied by function) | |
| length | - [in ] Length of buffer |
| Uint16 UserIdentityNegotiationSubItemAC::getServerResponse | ( | char *& | targetBuffer, | |
| Uint16 & | resultLen | |||
| ) | const |
Returns content of server response field Memory is allocated by this function and must be freed by the caller.
| buffer | - [out] Content of server response field. NULL if not set. Memory of buffer must be freed by the caller. | |
| length | - [out] Length of returned buffer |
| OFCondition UserIdentityNegotiationSubItemAC::streamedLength | ( | unsigned long & | length | ) | const [virtual] |
Computes total length of item if streamed into buffer.
| length | - [out] The length of the item if streamed |
Implements UserIdentityNegotiationSubItem.
| OFCondition UserIdentityNegotiationSubItemAC::stream | ( | unsigned char * | targetBuffer, | |
| unsigned long & | lengthWritten | |||
| ) | const [virtual] |
Stream the package into a byte stream for network transmission.
| targetBuffer | - [out] The buffer to stream to. | |
| lengthWritten | - [out] Number of bytes written to buffer |
Implements UserIdentityNegotiationSubItem.
| OFCondition UserIdentityNegotiationSubItemAC::parseFromBuffer | ( | unsigned char * | readBuffer, | |
| unsigned long & | bytesRead, | |||
| unsigned long | availData | |||
| ) | [virtual] |
Parse sub item from buffer.
The buffer has to start with the correct user item type.
| readBuffer | - [in] The buffer to read from. The pointer to the buffer gets incremented by "bytesRead" bytes. | |
| bytesRead | - [out] Number of bytes read by this function | |
| availData | - [in] Size of the buffer. |
Implements UserIdentityNegotiationSubItem.
| void UserIdentityNegotiationSubItemAC::dump | ( | STD_NAMESPACE ostream & | outstream | ) | const [virtual] |
Dump content of this user identity sub item to output stream.
| outstream | - [out] The stream to dump to |
Implements UserIdentityNegotiationSubItem.
| UserIdentityNegotiationSubItemAC& UserIdentityNegotiationSubItemAC::operator= | ( | const UserIdentityNegotiationSubItemAC & | rhs | ) |
Assignment operator, does a deep copy of a class instance.
| rhs | - [in] Right hand side of assignment |