Latest News

the latest news from our team

MiddleMan – Custom Server Current Features

NET_CLOSE


NET_WRITE


NET_READ


NET_READ_R

int NET_READ_R( int cd, char* buf, int len, int* rresult );

The return value and first three parameters remain unchanged from NET_READ. The last parameter (passed by reference) returns the NETIPC error number for the call when the return value is -1.


NET_READ_TIMED

int NET_READ_TIMED( int cd, char* buf, int len, int time_out );

The return value and first three parameters remain unchanged from NET_READ. The last parameter passes a read timeout value in seconds. Care must be taken to keep the client and server components in synchronization when using this function.


NET_OPEN


NET_VEPWD

int NET_VEPWD ( char* buf );

Calls the VECHECKLOGON routine from Security/3000. This is used only against the first question if more than one question is configured. Errors are logged to the console and MSJOB $STDLIST. Return values can be 0 (success), 1 (failure), 2 (Security/3000 not found).


NET_PUTCD

int NET_PUTCD ( int cd, int pin );

Pass the current connection descriptor (CD) in the first parameter. Pass the PIN number of the son process to which the CD is to be passed. Please note that the process must be created to obtain the PIN number; however, the process should not be activated until the NET_PUTCD call has been made. The procedure returns a status value of -1 if there is any problem passing the CD.


NET_GETCD

int NET_GETCD ();

Returns a connection descriptor (CD) that is used the same as the CD from NET_OPEN. The procedure returns a status value of -1 if there is any problem obtaining the CD.


NET_FLUSH

int NET_FLUSH ( int cd );

Destroys all data received from the client that is currently awaiting NET_READ calls.  This routine must be used with care as data sent by the client is lost.


/* Header file for TCP functions */

extern void NET_CLOSE( int cd );
extern int NET_WRITE( int cd, char* buf, int len );
extern int NET_READ( int cd, char* buf, int len );
extern int NET_READ_R( int cd, char* buf, int len, int* rresult );
extern int NET_READ_TIMED( int cd, char* buf, int len, int time_out );
extern int NET_OPEN( int secure, int prod_id );
extern int NET_VEPWD ( char* buf );
extern int NET_PUTCD ( int cd, int pin );
extern int NET_GETCD ();
extern int NET_FLUSH ( int cd );

char *NET_ErrorMessage();
void NET_ErrorMessage2 ( char *ErrorString );
int NET_ErrorNumber();
void NET_PrintError();

#define true 1
#define false 0

extern void op_alert ( char *buf );
extern int login ( char *buf );
extern int MS_CIGetInt ( char *VarName, int DefaultValue );
extern int MS_CIGetBool ( char *VarName, int DefaultValue );
extern int MS_CIGetStr ( char *VarName, char *ReturnValue, char *DefaultValue, int StringLength );

extern char ip_address[64];
extern char trace_stamp[48];

Leave a Reply

Your email address will not be published. Required fields are marked *