GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
JAM_ReadMsgHeader(3) JAM subroutine library JAM_ReadMsgHeader(3)

JAM_ReadMsgHeader - Read a message´s header and its subfields

#include <jamlib/jam.h>
int JAM_ReadMsgHeader(s_JamBase*       Base_PS,
                      ulong            MsgNo_I,
                      s_JamMsgHeader*  Header_PS,
                      s_JamSubPacket** Subfields_PPS);

Reads a message header and (optionally) the message header subfields.

Base_PS
The message base to use
MsgNo_I
The message number, i.e. the absolute position of the message in the message base. Message 0 is the first message.
Header_PS
A pointer to a message header structure where the message header will be stored.
Subfields_PPS
A pointer to a subpacket pointer, where the subfield packet handle will be stored. If this parameter is NULL, no subfields are read.

0
if successful
JAM_IO_ERROR
if an I/O error occured. See JAM_Errno(3)
JAM_NO_MEMORY
if a memory allocation failed
JAM_NO_MESSAGE
if message has been removed
JAM_CORRUPT_MSG
if message subfields are corrupted

s_JamMsgHeader  Header_S;
s_JamSubPacket* SubPack_PS
int             Result_I;
Result_I = JAM_ReadMsgHeader(0, &Header_S, &SubPack_PS);
if (Result_I)
  printf("JAM_ReadMsgHeader returned %d.\n", Result_I);

This manual page was created by Sir Raorn <raorn@altlinux.ru>, based on original JAMlib documentation by Bjorn Stenberg <bjorn@haxx.nu> and Johan Billing <billing@df.lth.se>.

jamlib(3), JAM_AddMessage(3), JAM_AddEmptyMessage(3), JAM_ChangeMsgHeader(3), JAM_Errno(3)
2002-11-07

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.