Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

remote.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include "intl.h"
#include "logging.h"
#include "defines.h"
#include "ui.h"
#include "remote.h"

Include dependency graph for remote.c:

Include dependency graph

Defines

#define XETPAN_LOCK_SOCKET   ".xetpan.socket"
#define REMOTE_MSG_PREFIX   "XetPan>"
#define REMOTE_MSG_PREFIX_LEN   strlen(REMOTE_MSG_PREFIX)
#define REMOTE_SIZE_TYPE   unsigned short int
#define REMOTE_SIZE_LEN   sizeof(REMOTE_SIZE_TYPE)
#define REMOTE_SIZE_MAX   0xFFFF
#define REMOTE_TOKEN_LEN   1
#define REMOTE_MSG_BUF   (xetpan->remote_msg[xetpan->remote_idx])
#define REMOTE_PREAMBLE_LEN

Enumerations

enum  { REMOTE_READING_MSG_PREFIX, REMOTE_READING_MSG_SIZE, REMOTE_READING_MSG_CONTENT }
enum  { REMOTE_STATE_MSG_COMPLETED, REMOTE_STATE_MSG_INCOMPLETE, REMOTE_STATE_MSG_ERROR, REMOTE_STATE_MSG_ABORTED }

Functions

int a_Remote_build_msg (XePRemote *remote, char cmd, const char *option)
void a_Remote_send_cmd_result (XePRemote *remote)
void a_Remote_send_command (XetPan *xetpan, char cmd, const char *option)
int a_Remote_be_a_server (XetPan *xetpan)
void a_Remote_close_unlink_socket (XetPan *xetpan)
int a_Remote_check_for_server (XetPan *xetpan)

Define Documentation

#define REMOTE_MSG_BUF   (xetpan->remote_msg[xetpan->remote_idx])
 

#define REMOTE_MSG_PREFIX   "XetPan>"
 

#define REMOTE_MSG_PREFIX_LEN   strlen(REMOTE_MSG_PREFIX)
 

#define REMOTE_PREAMBLE_LEN
 

Value:

#define REMOTE_SIZE_LEN   sizeof(REMOTE_SIZE_TYPE)
 

#define REMOTE_SIZE_MAX   0xFFFF
 

#define REMOTE_SIZE_TYPE   unsigned short int
 

#define REMOTE_TOKEN_LEN   1
 

#define XETPAN_LOCK_SOCKET   ".xetpan.socket"
 


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
REMOTE_READING_MSG_PREFIX 
REMOTE_READING_MSG_SIZE 
REMOTE_READING_MSG_CONTENT 

anonymous enum
 

Enumeration values:
REMOTE_STATE_MSG_COMPLETED 
REMOTE_STATE_MSG_INCOMPLETE 
REMOTE_STATE_MSG_ERROR 
REMOTE_STATE_MSG_ABORTED 


Function Documentation

int a_Remote_be_a_server XetPan xetpan  ) 
 

Here is the call graph for this function:

int a_Remote_build_msg XePRemote remote,
char  cmd,
const char *  option
 

int a_Remote_check_for_server XetPan xetpan  ) 
 

Here is the call graph for this function:

void a_Remote_close_unlink_socket XetPan xetpan  ) 
 

Here is the call graph for this function:

void a_Remote_send_cmd_result XePRemote remote  ) 
 

Here is the call graph for this function:

void a_Remote_send_command XetPan xetpan,
char  cmd,
const char *  option
 

Here is the call graph for this function:


Generated on Wed Oct 22 15:55:28 2003 for XetPan by doxygen 1.3.2