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

#include <covise_socket.h>

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

Public Member Functions

 MulticastSocket (char *MulticastGroup, int p, int ttl)
 
 ~MulticastSocket ()
 
int read (void *buf, unsigned nbyte)
 
int write (const void *buf, unsigned nbyte)
 
int get_ttl ()
 
- Public Member Functions inherited from covise::Socket
 Socket (Host *h, int p, int retries=20, double timeout=0.0)
 
 Socket (int p)
 
 Socket (int *p)
 
 Socket ()
 
 Socket (int, int sfd)
 
 Socket (const Socket &)
 
 Socket (int socket_id, sockaddr_in *sockaddr)
 
virtual ~Socket ()
 
int get_start_port ()
 
ServerConnectioncopy_and_accept ()
 
SimpleServerConnectioncopySimpleAndAccept ()
 
int available (void)
 
int listen ()
 
virtual int accept ()
 
int acceptOnly ()
 
int accept (int)
 
int acceptOnly (int)
 
virtual int Read (void *buf, unsigned nbyte)
 
int setNonBlocking (bool on)
 
int get_id ()
 
int get_port ()
 
Hostget_ip_alias (Host *)
 
Hostget_host ()
 
const char * get_hostname ()
 
void print ()
 
bool isConnected ()
 

Private Attributes

int ttl
 

Additional Inherited Members

- Static Public Member Functions inherited from covise::Socket
static void initialize ()
 
static void uninitialize ()
 
static void set_start_port (int stp)
 
static int getErrno ()
 
static const char * coStrerror (int err)
 
- Protected Member Functions inherited from covise::Socket
int setTCPOptions ()
 
- Protected Attributes inherited from covise::Socket
struct sockaddr_in s_addr_in
 
Hosthost
 
int sock_id
 
int port
 
bool connected
 
- Static Protected Attributes inherited from covise::Socket
static int stport = 31000
 
static char ** ip_alias_list = NULL
 
static Host ** host_alias_list = NULL
 
static bool bInitialised = false
 

Constructor & Destructor Documentation

MulticastSocket::MulticastSocket ( char *  MulticastGroup,
int  p,
int  ttl 
)
MulticastSocket::~MulticastSocket ( )

Member Function Documentation

int covise::MulticastSocket::get_ttl ( )
inline
int MulticastSocket::read ( void buf,
unsigned  nbyte 
)
virtual

Reimplemented from covise::Socket.

int MulticastSocket::write ( const void buf,
unsigned  nbyte 
)
virtual

Reimplemented from covise::Socket.

Member Data Documentation

int covise::MulticastSocket::ttl
private

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