HP NonStop G-Series User Manual
Page 110

Silo Media Manager Installation and Users Guide
Interfacing to SMM
4-43
#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)
{
short CountActuallyWritten = 0,
NumToSend = 0,
nFileNumber = -1,
nResult = 0,
TSISRVFileNum,
cc,
ccx,
err,
wCountRead = 0;
long WriteTag = 3;
char anBuffer[31000],
SendBuffer1[130],
SendBuffer2[130],
SendBuffer3[130],
SendBuffer4[130];
memset(anBuffer,
0,
31000);
wCountRead = 0;
nResult = FILE_OPEN_("$RECEIVE",
(short)8,
&nFileNumber,
, /* ACCESS MODE */
, /* EXCLUSION MODE */
0, /* NOWAIT DEPTH */