#include <sys/types.h>
#include <sys/time.h>
#include <signal.h>
#include <netinet/in.h>
Go to the source code of this file.
|
DSI * | dsi_init (const char *, const char *, const char *, const int, const int, const uint32_t) |
void | dsi_setstatus (DSI *, uint8_t *, const int) |
void | dsi_kill (int) |
size_t | dsi_stream_write (DSI *, void *, const size_t) |
size_t | dsi_stream_read (DSI *, void *, const size_t) |
int | dsi_stream_send (DSI *, void *, size_t) |
int | dsi_stream_receive (DSI *, void *, const size_t, size_t *) |
size_t | dsi_writeinit (DSI *, void *, const size_t) |
size_t | dsi_write (DSI *, void *, const size_t) |
void | dsi_writeflush (DSI *) |
ssize_t | dsi_readinit (DSI *, void *, const size_t, const size_t, const int) |
ssize_t | dsi_read (DSI *, void *, const size_t) |
void | dsi_readdone (DSI *) |
◆ DSI_AFPOVERTCP_PORT
#define DSI_AFPOVERTCP_PORT 548 |
◆ DSI_BLOCKSIZ
◆ DSI_CMDSIZ
◆ DSI_DATASIZ
◆ DSI_DEFQUANT
#define DSI_DEFQUANT 2 /* default attention quantum size */ |
◆ dsi_receive
Value:
int dsi_stream_receive(DSI *)
Definition dsi_stream.c:649
#define DSI_CMDSIZ
Definition test/testsuite/dsi.h:42
◆ dsi_send
Value: do { \
(x)->
header.dsi_len = htonl((x)->cmdlen); \
dsi_stream_send((x), (x)->commands, (x)->cmdlen); \
} while (0)
static void header(void)
Definition speedtest.c:570
◆ dsi_serverID
#define dsi_serverID |
( |
| x | ) |
|
◆ DSI_SERVQUANT_DEF
◆ DSI_SERVQUANT_MAX
◆ DSI_SERVQUANT_MIN
#define DSI_SERVQUANT_MIN 0x0004A2E0L /* minimum server quantum */ |
◆ dsi_wrtreply
#define dsi_wrtreply |
( |
| a, |
|
|
| b ) |
Value:
int dsi_cmdreply(DSI *, const int)
Definition dsi_cmdreply.c:19
◆ DSIERR_BADVERS
#define DSIERR_BADVERS 0xfbd6 |
◆ DSIERR_BUFSMALL
#define DSIERR_BUFSMALL 0xfbd5 |
◆ DSIERR_NOACK
#define DSIERR_NOACK 0xfbcd |
◆ DSIERR_NOSERV
#define DSIERR_NOSERV 0xfbd3 |
◆ DSIERR_NOSESS
#define DSIERR_NOSESS 0xfbd4 |
◆ DSIERR_OK
◆ DSIERR_PARM
#define DSIERR_PARM 0xfbd2 |
◆ DSIERR_SERVBUSY
#define DSIERR_SERVBUSY 0xfbd1 |
◆ DSIERR_SESSCLOS
#define DSIERR_SESSCLOS 0xfbd0 |
◆ DSIERR_SIZERR
#define DSIERR_SIZERR 0xfbcf |
◆ DSIERR_TOOMANY
#define DSIERR_TOOMANY 0xfbce |
◆ DSIFL_MAX
◆ DSIFL_REPLY
◆ DSIFL_REQUEST
#define DSIFL_REQUEST 0x00 |
◆ DSIFUNC_ATTN
#define DSIFUNC_ATTN 8 /* DSIAttention */ |
◆ DSIFUNC_CLOSE
◆ DSIFUNC_CMD
#define DSIFUNC_CMD 2 /* DSICommand */ |
◆ DSIFUNC_MAX
#define DSIFUNC_MAX 8 /* largest command */ |
◆ DSIFUNC_OPEN
◆ DSIFUNC_STAT
◆ DSIFUNC_TICKLE
#define DSIFUNC_TICKLE 5 /* DSITickle */ |
◆ DSIFUNC_WRITE
#define DSIFUNC_WRITE 6 /* DSIWrite */ |
◆ DSIOPT_ATTNQUANT
#define DSIOPT_ATTNQUANT 0x01 /* attention quantum */ |
◆ DSIOPT_SERVQUANT
◆ DSI
◆ dsi_init()
DSI * dsi_init |
( |
const char * | , |
|
|
const char * | , |
|
|
const char * | , |
|
|
const int | , |
|
|
const int | , |
|
|
const uint32_t | ) |
|
extern |
◆ dsi_kill()
◆ dsi_read()
ssize_t dsi_read |
( |
DSI * | dsi, |
|
|
void * | buf, |
|
|
const size_t | buflen ) |
|
extern |
◆ dsi_readdone()
void dsi_readdone |
( |
DSI * | dsi | ) |
|
|
extern |
◆ dsi_readinit()
ssize_t dsi_readinit |
( |
DSI * | dsi, |
|
|
void * | buf, |
|
|
const size_t | buflen, |
|
|
const size_t | size, |
|
|
const int | err ) |
|
extern |
◆ dsi_setstatus()
void dsi_setstatus |
( |
DSI * | , |
|
|
uint8_t * | , |
|
|
const int | ) |
|
extern |
◆ dsi_stream_read()
size_t dsi_stream_read |
( |
DSI * | dsi, |
|
|
void * | data, |
|
|
const size_t | length ) |
|
extern |
◆ dsi_stream_receive()
int dsi_stream_receive |
( |
DSI * | , |
|
|
void * | , |
|
|
const size_t | , |
|
|
size_t * | ) |
|
extern |
◆ dsi_stream_send()
int dsi_stream_send |
( |
DSI * | dsi, |
|
|
void * | buf, |
|
|
size_t | length ) |
|
extern |
◆ dsi_stream_write()
size_t dsi_stream_write |
( |
DSI * | , |
|
|
void * | , |
|
|
const size_t | ) |
|
extern |
◆ dsi_write()
size_t dsi_write |
( |
DSI * | dsi, |
|
|
void * | buf, |
|
|
const size_t | buflen ) |
|
extern |
◆ dsi_writeflush()
void dsi_writeflush |
( |
DSI * | dsi | ) |
|
|
extern |
◆ dsi_writeinit()
size_t dsi_writeinit |
( |
DSI * | dsi, |
|
|
void * | buf, |
|
|
const size_t | buflen ) |
|
extern |