client.h File Reference

#include "defs.h"
#include "interface.h"
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

Go to the source code of this file.

Functions

int cl_setup_connection (struct _application *app)
void cl_close_connection (struct _application *app)
int cl_command (struct _application *app, const char *cmd)
void cl_read (struct _application *app, char *buf, int *rcode, int *size, char *type)


Function Documentation

void cl_close_connection ( struct _application app  ) 

Closes the client connection to the ecasound server.

int cl_command ( struct _application app,
const char *  cmd 
)

Executes an ecasound command on the ecasound server. See man ecasound-iam(1) for a command list.

Parameters:
cmd The ecasound command string and its parameters

void cl_read ( struct _application app,
char *  buf,
int *  rcode,
int *  size,
char *  type 
)

Read an ecasound server response into buf.

Parameters:
win The curses main window
buf The result string from the server
rcode The return code from the server
size The number of characters returned into buf
type The type indicator of the returned type. This can be one of e,s,S,f?

int cl_setup_connection ( struct _application app  ) 

The socket file descriptor The socket file pointer Set up a client connection to the ecasound server.


Generated on Wed Sep 9 22:23:17 2009 for N-Chains by  doxygen 1.5.6