#include <covise_socket.h>
◆ Socket() [1/7]
Socket::Socket |
( |
const Host * |
h, |
|
|
int |
p, |
|
|
int |
retries = 20 , |
|
|
double |
timeout = 0.0 |
|
) |
| |
◆ Socket() [2/7]
◆ Socket() [3/7]
Socket::Socket |
( |
int * |
p | ) |
|
◆ Socket() [4/7]
covise::Socket::Socket |
( |
| ) |
|
|
inline |
◆ Socket() [5/7]
Socket::Socket |
( |
int |
, |
|
|
int |
sfd |
|
) |
| |
◆ Socket() [6/7]
Socket::Socket |
( |
const Socket & |
s | ) |
|
◆ Socket() [7/7]
Socket::Socket |
( |
int |
socket_id, |
|
|
sockaddr_in * |
sockaddr |
|
) |
| |
◆ ~Socket()
◆ accept() [1/2]
◆ accept() [2/2]
int Socket::accept |
( |
float |
timeout | ) |
|
◆ acceptOnly() [1/2]
int Socket::acceptOnly |
( |
| ) |
|
◆ acceptOnly() [2/2]
int Socket::acceptOnly |
( |
float |
timeout | ) |
|
◆ available()
int Socket::available |
( |
void |
| ) |
|
◆ copy_and_accept()
◆ copySimpleAndAccept()
◆ coStrerror()
const char * Socket::coStrerror |
( |
int |
err | ) |
|
|
static |
◆ get_host()
Host * covise::Socket::get_host |
( |
| ) |
|
|
inline |
◆ get_hostname()
const char * Socket::get_hostname |
( |
| ) |
const |
◆ get_id()
int covise::Socket::get_id |
( |
| ) |
const |
|
inline |
◆ get_ip_alias()
Host * Socket::get_ip_alias |
( |
const Host * |
test_host | ) |
|
◆ get_port()
int covise::Socket::get_port |
( |
| ) |
const |
|
inline |
◆ get_start_port()
int covise::Socket::get_start_port |
( |
| ) |
|
|
inline |
◆ getErrno()
static int covise::Socket::getErrno |
( |
| ) |
|
|
inlinestatic |
◆ initialize()
void Socket::initialize |
( |
| ) |
|
|
static |
◆ isConnected()
bool Socket::isConnected |
( |
| ) |
const |
◆ listen()
◆ print()
◆ read()
int Socket::read |
( |
void * |
buf, |
|
|
unsigned |
nbyte |
|
) |
| |
|
virtual |
◆ Read()
int Socket::Read |
( |
void * |
buf, |
|
|
unsigned |
nbyte, |
|
|
char * |
ip = nullptr |
|
) |
| |
|
virtual |
◆ set_start_port()
static void covise::Socket::set_start_port |
( |
int |
stp | ) |
|
|
inlinestatic |
◆ setNonBlocking()
int Socket::setNonBlocking |
( |
bool |
on | ) |
|
◆ setTCPOptions()
int Socket::setTCPOptions |
( |
| ) |
|
|
protected |
◆ uninitialize()
void Socket::uninitialize |
( |
| ) |
|
|
static |
◆ write()
int Socket::write |
( |
const void * |
buf, |
|
|
unsigned |
nbyte |
|
) |
| |
|
virtual |
◆ bInitialised
bool Socket::bInitialised = false |
|
staticprotected |
◆ connected
bool covise::Socket::connected |
|
protected |
◆ host
Host* covise::Socket::host |
|
protected |
◆ host_alias_list
◆ ip_alias_list
char ** Socket::ip_alias_list = NULL |
|
staticprotected |
◆ mutex
◆ port
◆ s_addr_in
struct sockaddr_in covise::Socket::s_addr_in |
|
protected |
◆ sock_id
std::atomic<int> covise::Socket::sock_id |
|
protected |
◆ stport
int Socket::stport = 31000 |
|
staticprotected |
The documentation for this class was generated from the following files: