A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
sim_errno.h
Go to the documentation of this file.
1
#ifndef NSC_SIM_ERRNO_H
2
#define NSC_SIM_ERRNO_H
3
4
// list of network stack errors that may happen in a simulation,
5
// and can be handled by the simulator in a sane way.
6
// Note that NSC handles several errors internally though
7
// nsc_assert, BUG() and friends, because they (should) never
8
// happen in a simulation (e.g. ESOCKTNOSUPPORT).
9
//
10
// These values are returned by the various methods provided by nsc.
11
// They must always be < 0, as values >= 0 are a success indicator;
12
// e.g. send_data() will return the number of bytes sent or one of
13
// the nsc_errno numbers below, accept() will return 0 on success or
14
// one of the nsc_errno numbers below, etc.
15
enum
nsc_errno
{
16
NSC_EUNKNOWN
= -1,
17
NSC_EADDRINUSE
= -10,
18
NSC_EADDRNOTAVAIL
= -11,
19
NSC_EAGAIN
= -12,
20
NSC_EALREADY
= -25,
21
NSC_ECONNREFUSED
= -32,
22
NSC_ECONNRESET
= -33,
23
NSC_EHOSTDOWN
= -50,
24
NSC_EHOSTUNREACH
= -51,
25
NSC_EINPROGRESS
= -60,
26
NSC_EISCONN
= -61,
27
NSC_EMSGSIZE
= -70,
28
NSC_ENETUNREACH
= -82,
29
NSC_ENOTCONN
= -86,
30
NSC_ENOTDIR
= -87,
// used by sysctl(2)
31
NSC_ESHUTDOWN
= -130,
32
NSC_ETIMEDOUT
= -140,
33
};
34
35
#endif
/* NSC_SIM_ERRNO_H */
NSC_ENOTDIR
Definition:
sim_errno.h:30
NSC_EADDRNOTAVAIL
Definition:
sim_errno.h:18
NSC_EHOSTUNREACH
Definition:
sim_errno.h:24
NSC_EAGAIN
Definition:
sim_errno.h:19
NSC_EALREADY
Definition:
sim_errno.h:20
NSC_EHOSTDOWN
Definition:
sim_errno.h:23
NSC_ENOTCONN
Definition:
sim_errno.h:29
NSC_ENETUNREACH
Definition:
sim_errno.h:28
NSC_EADDRINUSE
Definition:
sim_errno.h:17
NSC_ECONNRESET
Definition:
sim_errno.h:22
NSC_ETIMEDOUT
Definition:
sim_errno.h:32
NSC_ECONNREFUSED
Definition:
sim_errno.h:21
NSC_EISCONN
Definition:
sim_errno.h:26
nsc_errno
nsc_errno
Definition:
sim_errno.h:15
NSC_EINPROGRESS
Definition:
sim_errno.h:25
NSC_EMSGSIZE
Definition:
sim_errno.h:27
NSC_ESHUTDOWN
Definition:
sim_errno.h:31
NSC_EUNKNOWN
Definition:
sim_errno.h:16
src
internet
model
sim_errno.h
Generated on Sat Apr 19 2014 14:06:57 for ns-3 by
1.8.6