BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB Reference

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

◆ PJ_BUILD_ERR

#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.

◆ PJ_EAFNOTSUP

#define PJ_EAFNOTSUP

Unsupported address family

◆ PJ_EBUG

#define PJ_EBUG

Bug detected!

◆ PJ_EBUSY

#define PJ_EBUSY

Object is busy.

◆ PJ_ECANCELLED

#define PJ_ECANCELLED

Operation is cancelled.

◆ PJ_EEOF

#define PJ_EEOF

End of file.

◆ PJ_EEXISTS

#define PJ_EEXISTS

Object already exists.

◆ PJ_EGONE

#define PJ_EGONE

Object no longer exists

◆ PJ_EIGNORED

#define PJ_EIGNORED

Ignored

◆ PJ_EINVAL

#define PJ_EINVAL

Invalid argument.

◆ PJ_EINVALIDOP

#define PJ_EINVALIDOP

Invalid operation.

◆ PJ_EIPV6NOTSUP

#define PJ_EIPV6NOTSUP

IPv6 is not supported

◆ PJ_ENAMETOOLONG

#define PJ_ENAMETOOLONG

Name too long (eg. hostname too long).

◆ PJ_ENOMEM

#define PJ_ENOMEM

Not enough memory.

◆ PJ_ENOTFOUND

#define PJ_ENOTFOUND

Not found.

◆ PJ_ENOTSUP

#define PJ_ENOTSUP

The specified option is not supported.

◆ PJ_EPENDING

#define PJ_EPENDING

The operation is pending and will be completed later.

◆ PJ_ERESOLVE

#define PJ_ERESOLVE

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

◆ PJ_ESOCKETSTOP

#define PJ_ESOCKETSTOP

Socket is stopped

◆ PJ_ETIMEDOUT

#define PJ_ETIMEDOUT

Operation timed out.

◆ PJ_ETOOBIG

#define PJ_ETOOBIG

Size is too big.

◆ PJ_ETOOMANY

#define PJ_ETOOMANY

Too many objects.

◆ PJ_ETOOMANYCONN

#define PJ_ETOOMANYCONN

Too many connecting sockets.

◆ PJ_ETOOSMALL

#define PJ_ETOOSMALL

Size is too small.

◆ PJ_EUNKNOWN

#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.