packet.application.rpc_const (3) Linux Manual Page
packet.application.rpc_const – RPC constants module Description Provide constant values and mapping dictionaries for the RPC layer. Bugs No known bugs. Author Jorge Mora (mora [at] netapp.com)
The Linux Manuals (man pages) document is an important part of Linux documents. Linux Manuals are organized as several sections. Each section has a group of commands for a specific area in Linux usage, administration or development.
packet.application.rpc_const – RPC constants module Description Provide constant values and mapping dictionaries for the RPC layer. Bugs No known bugs. Author Jorge Mora (mora [at] netapp.com)
packet.application.rpc – RPC module Description Decode RPC layer. Classes class Header(baseobj.BaseObj) Header object Methods defined here: ——————— __init__(self, size, last_fragment) Constructor which takes the size and last fragment as inputs class Prog(baseobj.BaseObj) Prog object Methods defined here: ——————— __init__(self, unpack) Constructor which takes the Unpack object as input class RPC(packet.application.gss.GSS) RPC object Usage: from packet.application.rpc…
packet.application.gss_const – GSS constants module Description Provide constant values and mapping dictionaries for the GSS layer. Bugs No known bugs. Author Jorge Mora (mora [at] netapp.com)
packet.application.gss – GSS module Description Decode GSS layers. NOTE: Only procedures RPCSEC_GSS_INIT and RPCSEC_GSS_DATA are supported Classes class GSS(baseobj.BaseObj) GSS Data object This is a base object and should not be instantiated. It gives the following methods: # Decode data preceding the RPC payload when flavor is RPCSEC_GSS x.decode_gss_data() # Decode data following the RPC…
pack_ungetc – Moves one single character back to the input buffer. Allegro game programming library. Synopsis #include <allegro.h> int pack_ungetc(int c, PACKFILE *f); Description Puts a character back to the file’s input buffer. Like with ungetc from libc, only a single push back is guaranteed. Note: pack_fgets internally uses pack_ungetc, so never use pack_ungetc directly…
pack_fwrite – Writes n bytes to the stream. Allegro game programming library. Synopsis #include <allegro.h> long pack_fwrite(const void *p, long n, PACKFILE *f); Description Writes `n’ bytes to the stream `f’ from memory location pointed to by `p’. Return Value Returns the number of bytes written, which will be less than n if an error…
pack_fseek – Seeks inside a stream. Allegro game programming library. Synopsis #include <allegro.h> int pack_fseek(PACKFILE *f, int offset); Description Moves the position indicator of the stream `f’. Unlike the standard fseek() function, this only supports forward movements relative to the current position and in read-only streams, so don’t use negative offsets. Note that seeking is…
pack_fread – Reads n bytes from the stream. Allegro game programming library. Synopsis #include <allegro.h> long pack_fread(void *p, long n, PACKFILE *f); Description Reads `n’ bytes from the stream `f’, storing them at the memory location pointed to by `p’. Example: unsigned char buf[256]; … if (pack_fread(buf, 256, input_file) != 256) abort_on_error("Truncated input file!"); Return…
pack_fputs – Writes a string to the stream. Allegro game programming library. Synopsis #include <allegro.h> int pack_fputs(const char *p, PACKFILE *f); Description Writes a string to the stream `f’. The input string is converted from the current text encoding format to UTF-8 before writing. Newline characters are written as ` ’ on DOS and Windows…
pack_fopen_vtable – Allegro game programming library. Synopsis #include <allegro.h> PACKFILE *pack_fopen_vtable(const PACKFILE_VTABLE *vtable, void *userdata); Description Creates a new packfile structure that uses the functions specified in the vtable instead of the standard functions. The data pointer by `vtable’ and `userdata’ must remain available for the lifetime of the created packfile. While the created packfile…
pack_fopen_chunk – Opens a sub-chunk of a file. Allegro game programming library. Synopsis #include <allegro.h> PACKFILE *pack_fopen_chunk(PACKFILE *f, int pack); Description Opens a sub-chunk of a file. Chunks are primarily intended for use by the datafile code, but they may also be useful for your own file routines. A chunk provides a logical view of…
pack_fopen – Opens a file according to mode. Allegro game programming library. Synopsis #include <allegro.h> PACKFILE *pack_fopen(const char *filename, const char *mode); Description Opens a file according to mode, which may contain any of the flags: `r’ – open file for reading. `w’ – open file for writing, overwriting any existing data. `p’ – open…
pack_fgets – Reads a line from the stream. Allegro game programming library. Synopsis #include <allegro.h> char *pack_fgets(char *p, int max, PACKFILE *f); Description Reads a line from the stream `f’, storing it at location pointed to by `p’. Stops when a linefeed is encountered, or `max’ bytes have been read. The end of line is…
pack_ferror – Tells if an error occurred during an operation on the stream. Allegro game programming library. Synopsis #include <allegro.h> int pack_ferror(PACKFILE *f); Description Since EOF is used to report errors by some functions, it’s often better to use the pack_feof() function to check explicitly for end of file and pack_ferror() to check for errors….
pack_feof – Returns nonzero as soon as you reach the end of the file. Allegro game programming library. Synopsis #include <allegro.h> int pack_feof(PACKFILE *f); Description Finds out if you have reached the end of the file. It does not wait for you to attempt to read beyond the end of the file, contrary to the…
pack_fclose_chunk – Closes a previously opened sub-chunk. Allegro game programming library. Synopsis #include <allegro.h> PACKFILE *pack_fclose_chunk(PACKFILE *f); Description Closes a sub-chunk of a file, previously obtained by calling pack_fopen_chunk(). Return Value Returns a pointer to the parent of the sub-chunk you just closed. Returns NULL if there was some error (eg. you tried to close…
pack_fclose – Closes a stream previously opened. Allegro game programming library. Synopsis #include <allegro.h> int pack_fclose(PACKFILE *f); Description Closes the stream `f’ previously opened with pack_fopen() or pack_fopen_vtable(). After you have closed the stream, performing operations on it will yield errors in your application (e.g. crash it) or even block your OS. Return Value Returns…
libpack – support for connected components Synopsis #include <graphviz/pack.h> typedef enum { l_clust, l_node, l_graph, l_array } pack_mode; typedef struct { float aspect; /* desired aspect ratio */ int sz; /* row/column size size */ unsigned int margin; /* margin left around objects, in points */ int doSplines; /* use splines in constructing graph shape…
override_config_file – Specifies a file containing config overrides. Allegro game programming library. Synopsis #include <allegro.h> void override_config_file(const char *filename); Description Specifies a file containing config overrides. These settings will be used in addition to the parameters in the main config file, and where a variable is present in both files this version will take priority….
override_config_data – Specifies a block of data containing config overrides. Allegro game programming library. Synopsis #include <allegro.h> void override_config_data(const char *data, int length); Description Version of override_config_file() which uses a block of data that has already been read into memory. The length of the block has to be specified in bytes. Example: Note that this…