#include <VmdConnection.h>
Public Member Functions | |
VmdConnection (int portNumber) | |
~VmdConnection () | |
bool | checkForConnection () |
bool | clientIsConnected () const |
void | sendCoordinates (std::vector< VmdFloat3 > coords) |
void | closeClientConnection () |
int | getSocketNumber () const |
VmdConnection | ( | int | portNumber | ) | [inline] |
References vmdsock_bind(), vmdsock_create(), vmdsock_init(), and vmdsock_listen().
~VmdConnection | ( | ) | [inline] |
References clientIsConnected(), closeClientConnection(), vmdsock_destroy(), and vmdsock_shutdown().
bool checkForConnection | ( | ) | [inline] |
References clientIsConnected(), closeClientConnection(), IMD_GO, imd_handshake(), imd_recv_header(), vmdsock_accept(), and vmdsock_selread().
Referenced by PeriodicVmdReporter::handleEvent().
bool clientIsConnected | ( | ) | const [inline] |
Referenced by checkForConnection(), PeriodicVmdReporter::handleEvent(), and ~VmdConnection().
void sendCoordinates | ( | std::vector< VmdFloat3 > | coords | ) | [inline] |
References closeClientConnection(), and imd_send_fcoords().
Referenced by PeriodicVmdReporter::handleEvent().
void closeClientConnection | ( | ) | [inline] |
References imd_disconnect(), vmdsock_destroy(), and vmdsock_shutdown().
Referenced by checkForConnection(), sendCoordinates(), and ~VmdConnection().
int getSocketNumber | ( | ) | const [inline] |
Referenced by PeriodicVmdReporter::handleEvent().