![]() |
VR-Link API Documentation for DIS
|
Encapsulates a packet which is to be either received or transmitted over the network by the DtAsyncSocket class. More...
Collaboration diagram for DtAsyncSocketPacket:Public Member Functions | |
| DtAsyncSocketPacket () | |
| DtAsyncSocketPacket (int size, const char *data, DtIpv4Addr addr=0) | |
| DtAsyncSocketPacket (const DtAsyncSocketPacket &other) | |
| virtual | ~DtAsyncSocketPacket () |
| DtAsyncSocketPacket & | operator= (const DtAsyncSocketPacket &other) |
| size_t | size () const |
| char * | data () |
| DtIpv4Addr | addr () const |
Protected Attributes | |
| int | mySize |
| std::vector< char > | myData |
| DtIpv4Addr | myAddr |
Encapsulates a packet which is to be either received or transmitted over the network by the DtAsyncSocket class.
This class is used by STL Containers so it is important that it have a cpyCtor and an assignment operator.
| DtAsyncSocketPacket::DtAsyncSocketPacket | ( | ) |
| DtAsyncSocketPacket::DtAsyncSocketPacket | ( | int | size, |
| const char * | data, | ||
| DtIpv4Addr | addr = 0 |
||
| ) |
| DtAsyncSocketPacket::DtAsyncSocketPacket | ( | const DtAsyncSocketPacket & | other | ) |
|
virtual |
|
inline |
|
inline |
| DtAsyncSocketPacket& DtAsyncSocketPacket::operator= | ( | const DtAsyncSocketPacket & | other | ) |
|
inline |
|
protected |
|
protected |
|
protected |