COVISE Core
Public Member Functions | Private Attributes | List of all members
covise::SimpleClientConnection Class Reference

#include <covise_connect.h>

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

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 ()
 
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
 

Private Attributes

Hosthost
 
Hostlhost
 
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 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

◆ SimpleClientConnection()

SimpleClientConnection::SimpleClientConnection ( Host h,
int  p,
int  retries = 20 
)

◆ ~SimpleClientConnection()

SimpleClientConnection::~SimpleClientConnection ( )

Member Function Documentation

◆ get_dataformat()

void SimpleClientConnection::get_dataformat ( )

◆ readLine()

const char * SimpleClientConnection::readLine ( )

Member Data Documentation

◆ buffer

char covise::SimpleClientConnection::buffer[10001]
private

◆ buflen

size_t covise::SimpleClientConnection::buflen
private

◆ host

Host* covise::SimpleClientConnection::host
private

◆ lhost

Host* covise::SimpleClientConnection::lhost
private

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