cctools
Macros
chirp_protocol.h File Reference

This file defines the binary values mandated by the Chirp Protocol specification, used by both the client and server implementations of the protocol. More...

Go to the source code of this file.

Macros

#define CHIRP_LINE_MAX   1024
 The maximum length of a line in a Chirp remote procedure call. More...
 
#define CHIRP_PATH_MAX   1024
 The maximum length of a full path in any Chirp operation. More...
 
#define CHIRP_VERSION   3
 The current version of the Chirp protocol. More...
 
#define CHIRP_PORT   9094
 The default TCP port used by a Chirp server. More...
 
#define CHIRP_ERROR_NOT_AUTHENTICATED   -1
 Error: Cannot perform this operation without successfully authenticated. More...
 
#define CHIRP_ERROR_NOT_AUTHORIZED   -2
 Error: User is authenticated but is not allowed to perform this operation. More...
 
#define CHIRP_ERROR_DOESNT_EXIST   -3
 Error: The named file or directory does not exist. More...
 
#define CHIRP_ERROR_ALREADY_EXISTS   -4
 Error: The named file or directory already exists. More...
 
#define CHIRP_ERROR_TOO_BIG   -5
 Error: The server cannot process a file or directory that large. More...
 
#define CHIRP_ERROR_NO_SPACE   -6
 Error: There is no physical space remaining, or the user has exceeded some space allocation policy. More...
 
#define CHIRP_ERROR_NO_MEMORY   -7
 Error: There is not enough local memory to complete the request. More...
 
#define CHIRP_ERROR_INVALID_REQUEST   -8
 Error: The request was malformed at the protocol level. More...
 
#define CHIRP_ERROR_TOO_MANY_OPEN   -9
 Error: The client has too many files open. More...
 
#define CHIRP_ERROR_BUSY   -10
 Error: The requested file or directory is indicated as 'busy' by the operating system, but may be available later. More...
 
#define CHIRP_ERROR_TRY_AGAIN   -11
 Error: The operation could not be completed, but may be tried again. More...
 
#define CHIRP_ERROR_BAD_FD   -12
 Error: The indicated file descriptor is not valid. More...
 
#define CHIRP_ERROR_IS_DIR   -13
 Error: The request does not apply to this object, which is a directory. More...
 
#define CHIRP_ERROR_NOT_DIR   -14
 Error: The request does not apply to this object, which is not a directory. More...
 
#define CHIRP_ERROR_NOT_EMPTY   -15
 Error: The requested directory could not be deleted, because it still contains something. More...
 
#define CHIRP_ERROR_CROSS_DEVICE_LINK   -16
 Error: A link cannot be constructed across devices. More...
 
#define CHIRP_ERROR_OFFLINE   -17
 Error: The service is not currently available. More...
 
#define CHIRP_ERROR_TIMED_OUT   -18
 Error: The service is not currently available. More...
 
#define CHIRP_ERROR_DISCONNECTED   -19
 Error: The service is not currently available. More...
 
#define CHIRP_ERROR_GRP_UNREACHABLE   -20
 Error: The service is not currently available. More...
 
#define CHIRP_ERROR_NO_SUCH_JOB   -21
 Error: A attempted job operation refers to a job which does not exist. More...
 
#define CHIRP_ERROR_IS_A_PIPE   -22
 Error: A attempted operation does not apply to a pipe. More...
 
#define CHIRP_ERROR_NOT_SUPPORTED   -23
 Error: This operation is not supported by this server. More...
 
#define CHIRP_ERROR_NAME_TOO_LONG   -24
 Error: File name too long. More...
 
#define CHIRP_ERROR_UNKNOWN   -127
 Error: An unknown error occurred. More...
 

Detailed Description

This file defines the binary values mandated by the Chirp Protocol specification, used by both the client and server implementations of the protocol.

Macro Definition Documentation

#define CHIRP_LINE_MAX   1024

The maximum length of a line in a Chirp remote procedure call.

#define CHIRP_PATH_MAX   1024

The maximum length of a full path in any Chirp operation.

#define CHIRP_VERSION   3

The current version of the Chirp protocol.

#define CHIRP_PORT   9094

The default TCP port used by a Chirp server.

#define CHIRP_ERROR_NOT_AUTHENTICATED   -1

Error: Cannot perform this operation without successfully authenticated.

#define CHIRP_ERROR_NOT_AUTHORIZED   -2

Error: User is authenticated but is not allowed to perform this operation.

#define CHIRP_ERROR_DOESNT_EXIST   -3

Error: The named file or directory does not exist.

#define CHIRP_ERROR_ALREADY_EXISTS   -4

Error: The named file or directory already exists.

#define CHIRP_ERROR_TOO_BIG   -5

Error: The server cannot process a file or directory that large.

#define CHIRP_ERROR_NO_SPACE   -6

Error: There is no physical space remaining, or the user has exceeded some space allocation policy.

#define CHIRP_ERROR_NO_MEMORY   -7

Error: There is not enough local memory to complete the request.

#define CHIRP_ERROR_INVALID_REQUEST   -8

Error: The request was malformed at the protocol level.

#define CHIRP_ERROR_TOO_MANY_OPEN   -9

Error: The client has too many files open.

#define CHIRP_ERROR_BUSY   -10

Error: The requested file or directory is indicated as 'busy' by the operating system, but may be available later.

#define CHIRP_ERROR_TRY_AGAIN   -11

Error: The operation could not be completed, but may be tried again.

#define CHIRP_ERROR_BAD_FD   -12

Error: The indicated file descriptor is not valid.

#define CHIRP_ERROR_IS_DIR   -13

Error: The request does not apply to this object, which is a directory.

#define CHIRP_ERROR_NOT_DIR   -14

Error: The request does not apply to this object, which is not a directory.

#define CHIRP_ERROR_NOT_EMPTY   -15

Error: The requested directory could not be deleted, because it still contains something.

#define CHIRP_ERROR_CROSS_DEVICE_LINK   -16

Error: A link cannot be constructed across devices.

#define CHIRP_ERROR_OFFLINE   -17

Error: The service is not currently available.

#define CHIRP_ERROR_TIMED_OUT   -18

Error: The service is not currently available.

#define CHIRP_ERROR_DISCONNECTED   -19

Error: The service is not currently available.

#define CHIRP_ERROR_GRP_UNREACHABLE   -20

Error: The service is not currently available.

#define CHIRP_ERROR_NO_SUCH_JOB   -21

Error: A attempted job operation refers to a job which does not exist.

#define CHIRP_ERROR_IS_A_PIPE   -22

Error: A attempted operation does not apply to a pipe.

#define CHIRP_ERROR_NOT_SUPPORTED   -23

Error: This operation is not supported by this server.

#define CHIRP_ERROR_NAME_TOO_LONG   -24

Error: File name too long.

#define CHIRP_ERROR_UNKNOWN   -127

Error: An unknown error occurred.