|
Classes |
struct | player_connection |
| Connection structure. More...
|
Defines |
#define | PLAYER_CCLIENT_DEBUG_LEVEL_DEFAULT 5 |
Typedefs |
typedef player_connection | player_connection_t |
| Connection structure.
|
Functions |
int | player_debug_level (int level) |
| Adjust debug ouput.
|
int | player_connect (player_connection_t *conn, const char *host, const int port) |
| Connect to server listening at host:port.
|
int | player_connect_host (player_connection_t *conn, const char *host, const int port) |
int | player_connect_ip (player_connection_t *conn, const struct in_addr *addr, const int port) |
| Connect to server listening at addr:port.
|
int | player_connect_sockaddr (player_connection_t *conn, const struct sockaddr_in *server) |
| Connect to server listening at the address specified in sockaddr.
|
int | player_disconnect (player_connection_t *conn) |
| Close a connection.
|
int | player_request (player_connection_t *conn, uint16_t device, uint16_t device_index, const char *payload, size_t payloadlen, player_msghdr_t *replyhdr, char *reply, size_t replylen) |
| Issue some request to the server.
|
int | player_request_device_access (player_connection_t *conn, uint16_t device, uint16_t device_index, uint8_t req_access, uint8_t *grant_access, char *driver_name, int driver_name_len) |
| Issue a single device request (special case of player_request()).
|
int | player_peek (player_connection_t *conn, int timeout) |
| Test to see if there is pending data on the connection.
|
int | player_read (player_connection_t *conn, player_msghdr_t *hdr, char *payload, size_t payloadlen) |
| Read from the indicated connection.
|
int | player_read_tcp (player_connection_t *conn, player_msghdr_t *hdr, char *payload, size_t payloadlen) |
int | player_read_udp (player_connection_t *conn, player_msghdr_t *hdr, char *payload, size_t payloadlen) |
int | player_write (player_connection_t *conn, uint16_t device, uint16_t device_index, const char *command, size_t commandlen) |