COVISE Core
Public Member Functions | List of all members
covise::ControllerConnection Class Reference

#include <covise_connect.h>

Inheritance diagram for covise::ControllerConnection:
Inheritance graph
[legend]
Collaboration diagram for covise::ControllerConnection:
Collaboration graph
[legend]

Public Member Functions

 ControllerConnection (Host *h, int p, int id, int st)
 
- Public Member Functions inherited from covise::ClientConnection
 ClientConnection (Host *host, int port, int id, int senderType, int retries=20, double timeout=0.0)
 
 ~ClientConnection ()
 
- Public Member Functions inherited from covise::Connection
 Connection ()
 
 Connection (int sfd)
 
virtual ~Connection ()
 
SocketgetSocket () 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
 
Hostget_host ()
 
const Hostget_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
 

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 Socketsock = 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
 
Hostother_host = nullptr
 
int hostid
 
void(* remove_socket )(int)
 
int * header_int
 

Constructor & Destructor Documentation

◆ ControllerConnection()

covise::ControllerConnection::ControllerConnection ( Host h,
int  p,
int  id,
int  st 
)
inline

The documentation for this class was generated from the following file: