Datagram::StatusIndication Struct Reference

Status indication. More...

#include <DatagramInterface.h>

Public Member Functions

 StatusIndication ()
 For connection events, max pdu size, or error reasons.
 
 StatusIndication (const StatusIndication &src)
 
StatusIndicationoperator= (const StatusIndication &src)
 

Data Fields

Providerprovider
 
void * pduref
 This provider.
 
MSGstruct msg
 Reference for the PDU.
 
int info
 Gives details of error.
 

Detailed Description

Status indication.

Definition at line 166 of file DatagramInterface.h.

Constructor & Destructor Documentation

◆ StatusIndication() [1/2]

Datagram::StatusIndication::StatusIndication ( )
inline

For connection events, max pdu size, or error reasons.

Definition at line 172 of file DatagramInterface.h.

172: provider(0), pduref(0), info(-1) { msg.data = NULL; msg.dlen = 0; }
MSGstruct msg
Reference for the PDU.
void * pduref
This provider.
int info
Gives details of error.

References msg.

◆ StatusIndication() [2/2]

Datagram::StatusIndication::StatusIndication ( const StatusIndication src)
inline

Definition at line 173 of file DatagramInterface.h.

173 {
174 this->pduref = src.pduref;
175 this->info = src.info;
176 this->provider = src.provider;
177 this->msg.dlen = src.msg.dlen;
178 if (src.msg.data == src.msg.dbuf) {
179 this->msg.data = this->msg.dbuf;
180 }
181 else {
182 this->msg.data = (unsigned char*)smalloc(src.msg.dlen);
183 }
184 memcpy (this->msg.data, src.msg.data, src.msg.dlen);
185 }

◆ ~StatusIndication()

Datagram::StatusIndication::~StatusIndication ( )
inline

Definition at line 187 of file DatagramInterface.h.

187{ MSGfree (&msg); }

Member Function Documentation

◆ operator=()

StatusIndication & Datagram::StatusIndication::operator= ( const StatusIndication src)
inline

Definition at line 190 of file DatagramInterface.h.

190 {
191 this->provider = src.provider;
192 this->msg.dlen = src.msg.dlen;
193 if ( src.msg.data == src.msg.dbuf ) {
194 this->msg.data = this->msg.dbuf;
195 } else {
196 this->msg.data = (unsigned char *)
197 smalloc (src.msg.dlen);
198 }
199 memcpy (this->msg.data, src.msg.data, src.msg.dlen);
200
201 return *this;
202 }

Field Documentation

◆ provider

Provider* Datagram::StatusIndication::provider

Definition at line 167 of file DatagramInterface.h.

◆ pduref

void* Datagram::StatusIndication::pduref

This provider.

Definition at line 168 of file DatagramInterface.h.

◆ msg

◆ info

int Datagram::StatusIndication::info

Gives details of error.

Definition at line 170 of file DatagramInterface.h.


The documentation for this struct was generated from the following file:

All rights reserved © 2002 - 2024 Isode Ltd.