Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

errors.h File Reference

Go to the source code of this file.

Defines

#define ARTP_ERRORS_H   1

Enumerations

enum  artp_errors {
  E_GENERIC_ERROR = -1, E_MEMORY_FAIL = -2, E_EMPTY_BUFFER = -3, E_FULL_BUFFER = -4,
  E_DEAD_SESSION = -5, E_START_THREADS = -6, E_BUF_INIT_ERROR = -7, E_OPENING_FILE = -8,
  E_SYNTAX_ERROR = -9, E_BAD_VALUE = -10, E_INVALID_BUFFER_ID = -11, E_NO_AVAIL_SID = -12,
  E_NONEST_SESSION = -13, E_SESSION_EXISTS = -14, E_PACKET_NOT_FOUND = -15, E_DUPLICITY_PACKET = -16,
  E_INVALID_OPTION = -17, E_INVALID_OPT_SIZE = -18, E_INVALID_OPT_VALUE = -19, E_BAD_OPT_USE = -20,
  E_SENDING_ERROR = -21, E_FULL_CWND = -22, E_INVALID_PARAMETER = -23, E_BAD_PARAM_VALUE = -24,
  E_NO_ACK = -25, E_NULL_PTR = -26, E_UNSUPPORTED_AF = -27, E_DIFF_ADDR = -28,
  E_BAD_DGRAM = -29, E_BIG_DGRAM = -30, E_SMALL_MSS = -31, E_PARTNER_MSS = -32,
  E_BAD_PACKET_TYPE = -33
}

Functions

char * artp_error_str (enum artp_errors error_code)


Detailed Description

ARTP possible error codes.
Author:
Tomas Rebok
Date:
2004

Enumeration Type Documentation

enum artp_errors
 

Enumeration of possible ARTP functions error codes

Enumeration values:
E_GENERIC_ERROR  Generic error (not specified)
E_MEMORY_FAIL  Memory error (error in allocation or something else
E_EMPTY_BUFFER  Empty buffer
E_FULL_BUFFER  Full buffer
E_DEAD_SESSION  Session is dead (connection lost)
E_START_THREADS  Error in starting ARTP necessary threads
E_BUF_INIT_ERROR  Error in buffer initialization
E_OPENING_FILE  Error in opening config file
E_SYNTAX_ERROR  Syntax error in config file
E_BAD_VALUE  Bad value in config file
E_INVALID_BUFFER_ID  Invalid buffer identification number
E_NO_AVAIL_SID  There's no available session identification for that receiver
E_NONEST_SESSION  Refering to non-established session
E_SESSION_EXISTS  Wanted session already exists
E_PACKET_NOT_FOUND  Refering packet wasn't found
E_DUPLICITY_PACKET  Duplicity packet
E_INVALID_OPTION  Invalid option
E_INVALID_OPT_SIZE  Invalid option size
E_INVALID_OPT_VALUE  Invalid option value
E_BAD_OPT_USE  Badly specified option using
E_SENDING_ERROR  Error in packet sending
E_FULL_CWND  Full congestion window
E_INVALID_PARAMETER  Invalid parameter
E_BAD_PARAM_VALUE  Invalid parameter value
E_NO_ACK  No acknowledgement packet to send
E_NULL_PTR  Given pointer points to NULL
E_UNSUPPORTED_AF  Unsupported address family
E_DIFF_ADDR  Different addresses
E_BAD_DGRAM  Given datagram is bad
E_BIG_DGRAM  Given datagram is too big
E_SMALL_MSS  Set MSS is too small - packet cannot be sent
E_PARTNER_MSS  Our partner wishes smaller MSS than we want
E_BAD_PACKET_TYPE  Badly specified packet type


Function Documentation

char* artp_error_str enum artp_errors    error_code
 

Returns string describing given error. This function finds out relevant description for given ARTP error code and returns it as a string.

Parameters:
error_code  relevant error code
Returns:
NULL given error code is bad
Returns:
string error description


Generated on Fri May 21 07:50:25 2004 for Active Router Transport Protocol (ARTP) by doxygen1.2.15