et_network.h File Reference
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include "et_private.h"
Go to the source code of this file.
Defines |
#define | SA struct sockaddr |
#define | LISTENQ 10 |
#define | ET_SOCKBUFSIZE 49640 |
#define | ET_IOV_MAX 16 |
#define | ET_NODE_SAME 0 |
#define | ET_NODE_DIFF 1 |
#define | hton64(x) ntoh64(x) |
#define | ntoh64(x) x |
#define | ET_MAGIC_INT1 0x45543269 |
#define | ET_MAGIC_INT2 0x73324772 |
#define | ET_MAGIC_INT3 0x72656174 |
Functions |
uint64_t | et_ntoh64 (uint64_t n) |
int | et_CODAswap (int *src, int *dest, int nints, int same_endian) |
int | et_findserver2 (const char *etname, char *ethost, int *port, uint32_t *inetaddr, et_response **allETinfo, et_open_config *config, int trys, struct timeval *waittime) |
void | et_freeAnswers (et_response *answer) |
codaIpList * | et_orderIpAddrs (et_response *response, codaIpAddr *netinfo, char *preferredSubnet) |
Define Documentation
#define ET_MAGIC_INT1 0x45543269 |
#define ET_MAGIC_INT2 0x73324772 |
#define ET_MAGIC_INT3 0x72656174 |
#define ET_SOCKBUFSIZE 49640 |
#define hton64 |
( |
x |
|
) |
ntoh64(x) |
#define SA struct sockaddr |
Function Documentation
int et_CODAswap |
( |
int * |
src, |
|
|
int * |
dest, |
|
|
int |
nints, |
|
|
int |
same_endian | |
|
) |
| | |
int et_findserver2 |
( |
const char * |
etname, |
|
|
char * |
ethost, |
|
|
int * |
port, |
|
|
uint32_t * |
inetaddr, |
|
|
et_response ** |
allETinfo, |
|
|
et_open_config * |
config, |
|
|
int |
trys, |
|
|
struct timeval * |
waittime | |
|
) |
| | |
uint64_t et_ntoh64 |
( |
uint64_t |
n |
) |
|
codaIpList* et_orderIpAddrs |
( |
et_response * |
response, |
|
|
codaIpAddr * |
netinfo, |
|
|
char * |
preferredSubnet | |
|
) |
| | |