DTMerrmsg(3DTM)

NAME
DTMerrmsg - Print or return an error message.

SYNOPSIS
#include <dtm.h>

char *DTMerrmsg(int quiet)

DESCRIPTION
DTMerrmsg returns a pointer to a error message string that corresponds
to the current state of the DTMerrno variable.  If the argument
quiet is false (ie., zero), then the error message is also printed
to stderr.

The possible error values have the following corresponding error messages:

	DTMNOERR (0):		"No error",
	DTMMEM (1):		"Out of memory - can not create port",
	DTMHUH (2):		"Invalid port name - should be 'hostname:tcp port'",
	DTMNOPORT (3):		"Out of DTM ports - 256 ports max",
	DTMPORTINIT (4):		"Couldn't initialize port",
	DTMCALL (5):		"DTM routines called in wrong order",
	DTMEOF (6):		"Encounted EOF",
	DTMSOCK (7):		"Error creating socket",
	DTMHOST (8):		"Bad hostname",
	DTMTIMEOUT (9):		"Timeout waiting for connection",
	DTMCCONN (10):		"Couldn't connect",
	DTMREAD (11):		"DTM read error",
	DTMWRITE (12):		"DTM write error",
	DTMHEADER (13):		"DTM header to long for buffer",
	DTMSDS (14):		"SDS error",
	DTMSELECT (15):		"Select call error",
	DTMENV (16):		"Environment not setup",
	DTMBUFOVR (17):		"User buffer overflow",
	DTMCORPT (18):		"Port table corrupted",
	DTMBADPORT (19):		"Bad port supplied to library",
	DTMBADACK (20):		"Bad ack to internal flow control",
	DTMADDR (21):		"Bad address",
	DTMSERVER (22):		"Problem communicating with server"
	All other values:	"unknown error: <DTMerrno>"