| Support Forum G3D Web Page |
G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License. More...
Classes | |
| class | G3D::Conduit |
| class | G3D::NetworkDevice::EthernetAdapter |
| Description of an ethernet or wireless ethernet adapter. More... | |
| class | G3D::NetworkDevice |
| Abstraction of network (socket) functionality. More... | |
| class | G3D::PacketSizeException |
Namespaces | |
| G3D | |
Typedefs | |
| typedef shared_ptr< class LightweightConduit > | G3D::LightweightConduitRef |
| typedef shared_ptr< class NetListener > | G3D::NetListenerRef |
| typedef shared_ptr< class ReliableConduit > | G3D::ReliableConduitRef |
Enumerations | |
| enum | G3D::State { G3D::RECEIVING, G3D::HOLDING, G3D::NO_MESSAGE } |
Functions | |
| G3D::~LightweightConduit () | |
| Closes the socket. More... | |
| G3D::~NetListener () | |
| G3D::~ReliableConduit () | |
| Closes the socket. More... | |
| NetAddress | G3D::address () const |
| The address of the other end of the conduit. More... | |
| bool | G3D::clientWaiting () const |
| True if a client is waiting (i.e. More... | |
| uint32 | G3D::gcchtonl (uint32) |
| G3D::LightweightConduit (uint16 receivePort, bool enableReceive, bool enableBroadcast) | |
| int | G3D::maxMessageSize () const |
| The maximum length of a message that can be sent (G3D places a small header at the front of each UDP packet; this is already taken into account by the value returned). More... | |
| virtual bool | G3D::messageWaiting () |
| The message is actually copied from the socket to an internal buffer during this call. More... | |
| G3D::NetListener (uint16 port) | |
| Port is in host byte order. More... | |
| bool | G3D::ok () const |
| template<typename T > | |
| bool | G3D::receive (T &message) |
| If a message is waiting, deserializes the waiting message into message and returns true, otherwise returns false. More... | |
| void | G3D::receive () |
| Removes the current message from the queue. More... | |
| bool | G3D::receive (NetAddress &sender) |
| template<typename T > | |
| bool | G3D::receive (NetAddress &sender, T &message) |
| void | G3D::receiveHeader () |
| Receives the messageType and messageSize from the socket. More... | |
| void | G3D::receiveIntoBuffer () |
| Accumulates whatever part of the message (not the header) is still waiting on the socket into the receiveBuffer during state = RECEIVING mode. More... | |
| G3D::ReliableConduit (const NetAddress &addr) | |
| G3D::ReliableConduit (const SOCKET &sock, const NetAddress &addr) | |
| template<typename T > | |
| void | G3D::send (uint32 type, const T &message) |
Serializes the message and schedules it to be sent as soon as possible, and then returns immediately. More... | |
| void | G3D::send (uint32 type) |
| Sends an empty message with the given type. More... | |
| template<typename T > | |
| void | G3D::send (const NetAddress &a, uint32 type, const T &msg) |
| template<typename T > | |
| void | G3D::send (const Array< NetAddress > &a, uint32 type, const T &m) |
| Send the same message to multiple addresses (only serializes once). More... | |
| void | G3D::sendBuffer (const BinaryOutput &b) |
| void | G3D::sendBuffer (const NetAddress &a, BinaryOutput &b) |
| template<typename T > | |
| void | G3D::serializeMessage (uint32 type, const T &m, BinaryOutput &b) const |
| ReliableConduitRef | G3D::waitForConnection () |
| Block until a connection is received. More... | |
| virtual uint32 | G3D::waitingMessageType () |
Variables | |
| NetAddress | G3D::addr |
| bool | G3D::alreadyReadMessage |
True when waitingForMessageType has read the message from the network into messageType/messageStream. More... | |
| Array< uint8 > | G3D::messageBuffer |
The message received (the type has already been read off). More... | |
| NetAddress | G3D::messageSender |
Origin of the received message. More... | |
| uint32 | G3D::messageSize |
Total size of the incoming message (read from the header). More... | |
| uint32 | G3D::messageType |
Type of the incoming message. More... | |
| int | G3D::MTU |
| Maximum transmission unit (packet size in bytes) for this socket. More... | |
| void * | G3D::receiveBuffer |
| Shared buffer for receiving messages. More... | |
| size_t | G3D::receiveBufferTotalSize |
| Total size of the receiveBuffer. More... | |
| size_t | G3D::receiveBufferUsedSize |
| Size occupied by the current message... More... | |
| SOCKET | G3D::sock |
| enum G3D::State | G3D::state |
G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License.
1.8.15