COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
covise::Connection Class Reference

#include <covise_connect.h>

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

Public Member Functions

 Connection ()
 
 Connection (int sfd)
 
virtual ~Connection ()
 
SocketgetSocket ()
 
void set_peer (int id, int type)
 
int get_peer_id ()
 
int get_peer_type ()
 
int is_connected ()
 
virtual int receive (void *buf, unsigned nbyte)
 
virtual int send (const void *buf, unsigned nbyte)
 
virtual int recv_msg (Message *msg)
 
virtual int recv_msg_fast (Message *msg)
 
virtual int send_msg (const Message *msg)
 
virtual int send_msg_fast (const Message *msg)
 
int check_for_input (float time=0.0)
 
int get_port ()
 
void set_hostid (int id)
 
int get_hostid ()
 
int get_sendertype ()
 
int get_id (void(*remove_func)(int))
 
int get_sender_id ()
 
void close ()
 
void close_inform ()
 
int has_message ()
 
void print ()
 
Hostget_host ()
 
const char * get_hostname ()
 

Public Attributes

char convert_to
 

Protected Member Functions

int get_id ()
 

Protected Attributes

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

Friends

class ServerConnection
 
class ConnectionList
 

Constructor & Destructor Documentation

Connection::Connection ( )
Connection::Connection ( int  sfd)
Connection::~Connection ( )
virtual

Member Function Documentation

int Connection::check_for_input ( float  time = 0.0)
void Connection::close ( )
void Connection::close_inform ( )
Host * Connection::get_host ( )
int covise::Connection::get_hostid ( )
inline
const char * Connection::get_hostname ( )
int Connection::get_id ( )
protected
int Connection::get_id ( void(*)(int)  remove_func)
int Connection::get_peer_id ( )
int Connection::get_peer_type ( )
int covise::Connection::get_port ( )
inline
int covise::Connection::get_sender_id ( )
inline
int covise::Connection::get_sendertype ( )
inline
Socket* covise::Connection::getSocket ( )
inline
int covise::Connection::has_message ( )
inline
int covise::Connection::is_connected ( )
inline
void covise::Connection::print ( void  )
inline
int Connection::receive ( void buf,
unsigned  nbyte 
)
virtual
int Connection::recv_msg ( Message msg)
virtual

aw: this looks like stdin/stdout sending

int Connection::recv_msg_fast ( Message msg)
virtual
int Connection::send ( const void buf,
unsigned  nbyte 
)
virtual
int Connection::send_msg ( const Message msg)
virtual
int Connection::send_msg_fast ( const Message msg)
virtual
void Connection::set_hostid ( int  id)
void Connection::set_peer ( int  id,
int  type 
)

Friends And Related Function Documentation

friend class ConnectionList
friend
friend class ServerConnection
friend

Member Data Documentation

int covise::Connection::bytes_to_process
protected
char covise::Connection::convert_to
int* covise::Connection::header_int
protected
int covise::Connection::hostid
protected
int covise::Connection::message_to_do
protected
Host* covise::Connection::other_host
protected
int covise::Connection::peer_id_
protected
int covise::Connection::peer_type_
protected
int covise::Connection::port
protected
char* covise::Connection::read_buf
protected
void(* covise::Connection::remove_socket)(int)
protected
int covise::Connection::send_type
protected
int covise::Connection::sender_id
protected
class Socket* covise::Connection::sock
protected
unsigned long covise::Connection::tru
protected

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