COVISE Core
|
#include <covise_connect.h>
Public Member Functions | |
SimpleClientConnection (Host *, int p, int retries=20) | |
~SimpleClientConnection () | |
const char * | readLine () |
void | get_dataformat () |
Public Member Functions inherited from covise::Connection | |
Connection () | |
Connection (int sfd) | |
virtual | ~Connection () |
Socket * | getSocket () const |
void | set_peer (int id, int type) |
int | get_peer_id () const |
int | get_peer_type () const |
int | is_connected () const |
virtual int | receive (void *buf, unsigned nbyte) const |
virtual int | send (const void *buf, unsigned nbyte) const |
virtual int | recv_msg (Message *msg, char *ip=nullptr) const |
virtual int | recv_msg_fast (Message *msg) const |
virtual bool | sendMessage (const Message *msg) const override |
virtual bool | sendMessage (const UdpMessage *msg) const override |
virtual int | send_msg_fast (const Message *msg) |
int | check_for_input (float time=0.0) const |
int | get_port () const |
void | set_hostid (int id) |
int | get_hostid () const |
int | get_sendertype () const |
int | get_id (void(*remove_func)(int)) const |
int | get_sender_id () const |
void | close () |
void | close_inform () |
int | has_message () const |
void | print () const |
Host * | get_host () |
const Host * | get_host () const |
const char * | get_hostname () const |
Public Member Functions inherited from covise::MessageSenderInterface | |
MessageSenderInterface ()=default | |
virtual | ~MessageSenderInterface ()=default |
bool | send (const covise::MessageBase *msg) const |
bool | send (const covise::Message *msg) const |
bool | send (const UdpMessage *msg) const |
bool | send (covise::TokenBuffer &tb, int type, Protocol p=Protocol::TCP) const |
Private Attributes | |
Host * | host |
Host * | lhost |
char | buffer [10001] |
size_t | buflen |
Additional Inherited Members | |
Public Attributes inherited from covise::Connection | |
char | convert_to |
Protected Member Functions inherited from covise::Connection | |
int | get_id () const |
bool | sendMessage (int senderId, int senderType, const Message *msg) const |
virtual bool | sendMessage (const covise::Message *msg) const =0 |
virtual bool | sendMessage (const UdpMessage *msg) const =0 |
Protected Attributes inherited from covise::Connection | |
class Socket * | sock = nullptr |
int | port |
int | sender_id |
int | send_type |
int | peer_id_ |
int | peer_type_ |
int | message_to_do |
int | bytes_to_process |
unsigned long | tru |
char * | read_buf = nullptr |
Host * | other_host = nullptr |
int | hostid |
void(* | remove_socket )(int) |
int * | header_int |
SimpleClientConnection::SimpleClientConnection | ( | Host * | h, |
int | p, | ||
int | retries = 20 |
||
) |
SimpleClientConnection::~SimpleClientConnection | ( | ) |
void SimpleClientConnection::get_dataformat | ( | ) |
const char * SimpleClientConnection::readLine | ( | ) |
|
private |
|
private |
|
private |
|
private |