HP Integrity NonStop H-Series User Manual

Page 203

Advertising
background image

Interfacing to LMM

Library Media Manager Installation and User’s Guide529970-002

D -45

Examples of Structure

pcReplyBuffer[122] = 0
pcReplyBuffer[123] = 0
pcReplyBuffer[124] = 0
pcReplyBuffer[125] = 0
pcReplyBuffer[126] = 0
pcReplyBuffer[127] = 0
pcReplyBuffer[128] = 0
pcReplyBuffer[129] = 0
pcReplyBuffer[130] = 255
pcReplyBuffer[131] = 255
pcReplyBuffer[132] = 0
pcReplyBuffer[133] = 0
pcReplyBuffer[134] = 0
pcReplyBuffer[135] = 11

Receive Dismount Tape information
Dismounted Tape: 000208
From Drive: 1030
To Slot 11

Example

/* You will have to run THRDPTY file as process $TPTY before running your
interface.The interface must be run as process $API in order for messages to be
received back. *//* To calculate message size for return message is anBuffer[0] x 256
+ anBuffer[1] = message size */

#pragma nolist
#pragma symbols

#pragma ssv0 "$system.system", ssv1 "$system.ztcpip", ssv2 "$system.zsysdefs"

#include <param.h>
#include <socket.h>
#include <in.h>
#include <netdb.h>
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
#include <string.h>
#include <ctype.h>
#include <cextdecs>

int main(void)

{

shortCountActuallyWritten = 0,
NumToSend = 0,
FileNumber = -1,
nResult = 0,

Advertising
This manual is related to the following products: