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

#include <covise_connect.h>

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

Public Member Functions

 ServerConnection (int p, int id, int st)
 
 ServerConnection (int *p, int id, int st)
 
 ServerConnection (Socket *s)
 
virtual ~ServerConnection ()
 
int acceptOne ()
 
int acceptOne (int)
 
int listen ()
 
ServerConnectionspawn_connection ()
 
SimpleServerConnectionspawnSimpleConnection ()
 
- Public Member Functions inherited from covise::Connection
 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 ()
 

Protected Member Functions

void get_dataformat ()
 
- Protected Member Functions inherited from covise::Connection
int get_id ()
 

Additional Inherited Members

- Public Attributes inherited from covise::Connection
char convert_to
 
- Protected Attributes inherited from covise::Connection
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
 

Constructor & Destructor Documentation

ServerConnection::ServerConnection ( int  p,
int  id,
int  st 
)
ServerConnection::ServerConnection ( int *  p,
int  id,
int  st 
)
covise::ServerConnection::ServerConnection ( Socket s)
inline
virtual covise::ServerConnection::~ServerConnection ( )
inlinevirtual

Member Function Documentation

int ServerConnection::acceptOne ( )
int ServerConnection::acceptOne ( int  wait)
void ServerConnection::get_dataformat ( )
protected
int ServerConnection::listen ( )
ServerConnection * ServerConnection::spawn_connection ( )
SimpleServerConnection * ServerConnection::spawnSimpleConnection ( )

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