Panda3D
|
Represents an open communication channel in the connected-frame protocol. More...
#include "cfChannel.h"
Public Member Functions | |
CFChannel (DatagramGenerator *dggen, DatagramSink *dgsink) | |
The DatagramGenerator and DatagramSink should be newly created on the free store (via the new operator). | |
PT (CFCommand) receive_command() | |
void | send_command (CFCommand *command) |
Delivers a single command to the process at the other end of the channel. |
Represents an open communication channel in the connected-frame protocol.
Commands may be sent and received on this channel.
Definition at line 30 of file cfChannel.h.
CFChannel::CFChannel | ( | DatagramGenerator * | dggen, |
DatagramSink * | dgsink | ||
) |
The DatagramGenerator and DatagramSink should be newly created on the free store (via the new operator).
The CFChannel will take ownership of these pointers, and will delete them when it destructs.
Definition at line 27 of file cfChannel.cxx.
References BamWriter::init(), and BamReader::init().
void CFChannel::send_command | ( | CFCommand * | command | ) |
Delivers a single command to the process at the other end of the channel.
Definition at line 56 of file cfChannel.cxx.
References BamWriter::write_object().