dtn_ipc.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <oasys/compat/inet_aton.h>
#include <oasys/compat/inttypes.h>
#include "dtn_ipc.h"
#include "dtn_errno.h"
#include "dtn_types.h"

Go to the source code of this file.

Defines

#define CASE(_type)   case _type : return #_type; break;

Functions

const char * dtnipc_msgtoa (u_int8_t type)
 Type code to string conversion routine.
int dtnipc_open (dtnipc_handle_t *handle)
int dtnipc_close (dtnipc_handle_t *handle)
int dtnipc_send (dtnipc_handle_t *handle, dtnapi_message_type_t type)
int dtnipc_recv (dtnipc_handle_t *handle, int *status)
int dtnipc_send_recv (dtnipc_handle_t *handle, dtnapi_message_type_t type)
 Send a message and wait for a response over the dtn ipc protocol.

Variables

int dtnipc_version = DTN_IPC_VERSION


Define Documentation

#define CASE ( _type   )     case _type : return #_type; break;


Function Documentation

int dtnipc_close ( dtnipc_handle_t handle  ) 

const char* dtnipc_msgtoa ( u_int8_t  type  ) 

int dtnipc_open ( dtnipc_handle_t handle  ) 

int dtnipc_recv ( dtnipc_handle_t handle,
int *  status 
)

int dtnipc_send ( dtnipc_handle_t handle,
dtnapi_message_type_t  type 
)

int dtnipc_send_recv ( dtnipc_handle_t handle,
dtnapi_message_type_t  type 
)

Send a message and wait for a response over the dtn ipc protocol.

Returns 0 on success, -1 on error.

Definition at line 361 of file dtn_ipc.c.

References DTN_SUCCESS, dtnipc_recv(), dtnipc_send(), and dtnipc_handle::err.

Referenced by dtn_bind(), dtn_cancel(), dtn_cancel_poll(), dtn_recv(), dtn_send(), dtn_session_update(), dtn_unbind(), and dtnipc_close().


Variable Documentation

int dtnipc_version = DTN_IPC_VERSION

Definition at line 38 of file dtn_ipc.c.

Referenced by dtnipc_open(), and DTNOpenCommand::exec().


Generated on Fri Jan 30 09:43:10 2009 for DTN Reference Implementation by  doxygen 1.5.8