nodeAccess.h File Reference

他ノードへのアクセス More...

#include "cpp_extern_macro.h"

Include dependency graph for nodeAccess.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nodeInfo_t
 ノードの情報管理 More...
struct  packetInfo_t
 パケットの情報管理 More...

Defines

#define ADD_PACKET_DATA(A, B)   addPacketData(A,(unsigned char *)&(B),sizeof(B))
#define ADD_WRITE_PACKET_DATA(A, B, C)   { B = C; addPacketData(A,(unsigned char *)&(B),sizeof(B)); }

Enumerations

enum  { WAIT_PACKET_HEADER, HEADER_RECEIVED, PACKET_RECEIVED, NODE_INFO_MAX = 8 }
enum  {
  NODE_ACCESS_RETRY_TIMES = 3, NODE_ACCESS_PACKET_HEADER_SIZE = 16, PACKET_UNKNOWN = -1, PACKET_WRITE_REQUEST = 0x1,
  PACKET_WRITE_RESPONSE = 0x2, PACKET_READ_REQUEST = 0x4, PACKET_READ_RESPONSE = 0x6, PACKET_FIRST_TAG = 0x42f27b
}

Functions

void initNodeInfo (nodeInfo_t *node)
int registerStructInfo (nodeInfo_t *node, unsigned char *top, long target_id)
long getStructId (nodeInfo_t *node, unsigned char *top)
void initPacketInfo (packetInfo_t *pa, unsigned char *buffer, unsigned char *top, unsigned char type, long target_id, long unique_id)
int terminatePacketInfo (packetInfo_t *pa)
char getPacketType (unsigned char *packet_data)
long getPacketLength (unsigned char *packet_data)
long getPacketUniqueId (unsigned char *packet_data)
void writeFromPacketData (unsigned char *packet_data, unsigned char *top)
void addPacketData (packetInfo_t *na, unsigned char *offset, unsigned char size)
void setPacketReply (packetInfo_t *na, unsigned char reply)
int checkHeaderFormat (unsigned char *buffer)
int checkFirstTag (unsigned char *buffer)
int checkPacketFormat (unsigned char *buffer, int length)
long createReadResponsePacket (unsigned char *buffer, unsigned char *top)
long createWriteResponsePacket (unsigned char *buffer, unsigned char *top)
int removeInvalidPacketHeader (unsigned char *recv_buffer, int filled)

Variables

 BEGIN_C_DECLS
 END_C_DECLS


Detailed Description

他ノードへのアクセス

Author:
Satofumi KAMIMURA
$Id$

Definition in file nodeAccess.h.


Generated on Mon Apr 13 22:52:06 2009 by  doxygen 1.5.7.1