Home --> Documentations --> PJLIB Reference

Macros
PJLIB's Own Error Codes

Macros

#define PJ_BUILD_ERR(code, msg)   { code, msg " (" #code ")" }
 
#define PJ_EUNKNOWN
 
#define PJ_EPENDING
 
#define PJ_ETOOMANYCONN
 
#define PJ_EINVAL
 
#define PJ_ENAMETOOLONG
 
#define PJ_ENOTFOUND
 
#define PJ_ENOMEM
 
#define PJ_EBUG
 
#define PJ_ETIMEDOUT
 
#define PJ_ETOOMANY
 
#define PJ_EBUSY
 
#define PJ_ENOTSUP
 
#define PJ_EINVALIDOP
 
#define PJ_ECANCELLED
 
#define PJ_EEXISTS
 
#define PJ_EEOF
 
#define PJ_ETOOBIG
 
#define PJ_ERESOLVE
 
#define PJ_ETOOSMALL
 
#define PJ_EIGNORED
 
#define PJ_EIPV6NOTSUP
 
#define PJ_EAFNOTSUP
 
#define PJ_EGONE
 
#define PJ_ESOCKETSTOP
 

Detailed Description

Macro Definition Documentation

#define PJ_BUILD_ERR (   code,
  msg 
)    { code, msg " (" #code ")" }

Use this macro to generate error message text for your error code, so that they look uniformly as the rest of the libraries.

Parameters
codeThe error code
msgThe error test.
#define PJ_EAFNOTSUP

Unsupported address family

#define PJ_EBUG

Bug detected!

#define PJ_EBUSY

Object is busy.

#define PJ_ECANCELLED

Operation is cancelled.

#define PJ_EEOF

End of file.

#define PJ_EEXISTS

Object already exists.

#define PJ_EGONE

Object no longer exists

#define PJ_EIGNORED

Ignored

#define PJ_EINVAL

Invalid argument.

#define PJ_EINVALIDOP

Invalid operation.

#define PJ_EIPV6NOTSUP

IPv6 is not supported

#define PJ_ENAMETOOLONG

Name too long (eg. hostname too long).

#define PJ_ENOMEM

Not enough memory.

#define PJ_ENOTFOUND

Not found.

#define PJ_ENOTSUP

The specified option is not supported.

#define PJ_EPENDING

The operation is pending and will be completed later.

#define PJ_ERESOLVE

Error in gethostbyname(). This is a generic error returned when gethostbyname() has returned an error.

#define PJ_ESOCKETSTOP

Socket is stopped

#define PJ_ETIMEDOUT

Operation timed out.

#define PJ_ETOOBIG

Size is too big.

#define PJ_ETOOMANY

Too many objects.

#define PJ_ETOOMANYCONN

Too many connecting sockets.

#define PJ_ETOOSMALL

Size is too small.

#define PJ_EUNKNOWN

Unknown error has been reported.

 


PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.