protocol.c File Reference
#include "magma.h"Variable Documentation
| const optype_t MAGMA_OP_TYPE_ADD_FLARE_TO_PARENT = 50 |
Operation type ADD_FLARE_TO_PARENT implemented
| const optype_t MAGMA_OP_TYPE_CHMOD = 11 |
Operation type CHMOD
| const optype_t MAGMA_OP_TYPE_CHOWN = 12 |
Operation type CHOWN
| const optype_t MAGMA_OP_TYPE_CLOSECONNECTION = 254 |
Operation type CLOSECONNECTION (close connection to MAGMA server)
| const optype_t MAGMA_OP_TYPE_DESTROY = 31 |
Operation type DESTROY optional
| const optype_t MAGMA_OP_TYPE_DROP_KEY = 104 |
Opearation type DROP_KEY (I've received this key, forget it)
| const optype_t MAGMA_OP_TYPE_F_CLOSEDIR = 61 |
Operation type F_CLOSEDIR implemented
| const optype_t MAGMA_OP_TYPE_F_OPEN = 70 |
| const optype_t MAGMA_OP_TYPE_F_OPENDIR = 60 |
Operation type F_OPENDIR implemented
| const optype_t MAGMA_OP_TYPE_F_READ = 71 |
| const optype_t MAGMA_OP_TYPE_F_READDIR = 64 |
Operation type F_READDIR implemented
| const optype_t MAGMA_OP_TYPE_F_SEEKDIR = 63 |
Operation type F_SEEKDIR implemented
| const optype_t MAGMA_OP_TYPE_F_TELLDIR = 62 |
Operation type F_TELLDIR implemented
| const optype_t MAGMA_OP_TYPE_F_WRITE = 72 |
| const optype_t MAGMA_OP_TYPE_FLUSH = 19 |
Operation type FLUSH optional
| const optype_t MAGMA_OP_TYPE_FSYNC = 21 |
Operation type FSYNC optional HAVE_SETXATTR
| const optype_t MAGMA_OP_TYPE_FSYNCDIR = 29 |
Operation type FSYNCDIR optional
| const optype_t MAGMA_OP_TYPE_GET_KEY = 102 |
Opearation type GET_KEY (give me a key of your keyspace)
| const optype_t MAGMA_OP_TYPE_GET_KEY_CONTENT = 105 |
Opearation type GET_KEY_CONTENT (Send me flare contents of this key)
| const optype_t MAGMA_OP_TYPE_GETATTR = 1 |
Operation type GETATTR. Need -D_FILE_OFFSET_BITS=64 to compile cleanly
| const optype_t MAGMA_OP_TYPE_GETDIR = 3 |
Operaiton type GETDIR. deprecated, see readdir
| const optype_t MAGMA_OP_TYPE_HEARTBEAT = 255 |
Operation type HEARTBEAT (see if server is still available)
| const optype_t MAGMA_OP_TYPE_INIT = 30 |
Operation type INIT optional
| const optype_t MAGMA_OP_TYPE_JOIN = 100 |
Opearation type JOIN (existing network)
| const optype_t MAGMA_OP_TYPE_LINK = 10 |
Operation type LINK
| const optype_t MAGMA_OP_TYPE_MKDIR = 5 |
Operation type MKDIR
| const optype_t MAGMA_OP_TYPE_MKNOD = 4 |
Operation type MKNOD
| const optype_t MAGMA_OP_TYPE_OPEN = 15 |
Operation type OPEN
| const optype_t MAGMA_OP_TYPE_OPENDIR = 26 |
Operation type OPENDIR optional
| const optype_t MAGMA_OP_TYPE_PUT_KEY = 103 |
Opearation type PUT_KEY (take a key of my keyspace)
| const optype_t MAGMA_OP_TYPE_READ = 16 |
Operation type READ
| const optype_t MAGMA_OP_TYPE_READDIR = 27 |
Operation type READDIR implemented
| const optype_t MAGMA_OP_TYPE_READLINK = 2 |
Operation type READLINK
| const optype_t MAGMA_OP_TYPE_RELEASE = 20 |
Operation type RELEASE optional
| const optype_t MAGMA_OP_TYPE_RELEASEDIR = 28 |
Operation type RELEASEDIR optional
| const optype_t MAGMA_OP_TYPE_REMOVE_FLARE_FROM_PARENT = 51 |
Operation type REMOVE_FLARE_FROM_PARENT implemented
| const optype_t MAGMA_OP_TYPE_RENAME = 9 |
Operation type RENAME
| const optype_t MAGMA_OP_TYPE_RMDIR = 7 |
Operation type RMDIR
| const optype_t MAGMA_OP_TYPE_STATFS = 18 |
Operation type STATFS
| const optype_t MAGMA_OP_TYPE_SYMLINK = 8 |
Operation type SYMLINK
| const optype_t MAGMA_OP_TYPE_TRANSMIT_NODE = 101 |
Opearation type TRANSMIT_NODE (tell me about another node)
| const optype_t MAGMA_OP_TYPE_TRUNCATE = 13 |
Operation type TRUNCATE
| const optype_t MAGMA_OP_TYPE_UNLINK = 6 |
Operation type UNLINK
| const optype_t MAGMA_OP_TYPE_UTIME = 14 |
Operation type UTIME
| const optype_t MAGMA_OP_TYPE_WRITE = 17 |
Operation type WRITE
| const peertype_t PEER_TYPE_CONSOLE = 3 |
identify a console connection
| const peertype_t PEER_TYPE_FLARE = 2 |
identify a flare system client
| const peertype_t PEER_TYPE_FUSE = 2 |
an alias for flare system client
| const peertype_t PEER_TYPE_MOUNT = 2 |
an alias for flare system client
| const peertype_t PEER_TYPE_NODE = 1 |
identify a magma server exchanging data
| const peertype_t PEER_TYPE_TELNET = 13 |
identify a console connection