reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
ErrorCode.hxx
Go to the documentation of this file.
1#ifndef ERRORCODE_HXX
2#define ERRORCODE_HXX
3
4#include <asio/error_code.hpp>
5
6namespace reTurn {
7
8typedef int ErrorType;
9
10static const ErrorType Success = 0;
11static const ErrorType GeneralError = -1;
12
13static const ErrorType ErrorBase = 8000;
14
19static const ErrorType NoAllocation = ErrorBase + 5;
21static const ErrorType ReadError = ErrorBase + 7;
23static const ErrorType FrameError = ErrorBase + 9;
28static const ErrorType NotConnected = ErrorBase + 14;
30static const ErrorType StrayResponse = ErrorBase + 16;
32}
33
34#endif
35
36
37/* ====================================================================
38
39 Copyright (c) 2007-2008, Plantronics, Inc.
40 All rights reserved.
41
42 Redistribution and use in source and binary forms, with or without
43 modification, are permitted provided that the following conditions are
44 met:
45
46 1. Redistributions of source code must retain the above copyright
47 notice, this list of conditions and the following disclaimer.
48
49 2. Redistributions in binary form must reproduce the above copyright
50 notice, this list of conditions and the following disclaimer in the
51 documentation and/or other materials provided with the distribution.
52
53 3. Neither the name of Plantronics nor the names of its contributors
54 may be used to endorse or promote products derived from this
55 software without specific prior written permission.
56
57 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
58 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
59 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
60 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
61 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
62 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
63 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
64 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
65 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
66 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
67 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
68
69 ==================================================================== */
static const ErrorType MissingAuthenticationAttributes
Definition ErrorCode.hxx:15
static const ErrorType ErrorParsingMessage
Definition ErrorCode.hxx:18
static const ErrorType NotConnected
Definition ErrorCode.hxx:28
static const ErrorType InvalidChannelNumberReceived
Definition ErrorCode.hxx:24
static const ErrorType Success
Definition ErrorCode.hxx:10
static const ErrorType BadMessageIntegrity
Definition ErrorCode.hxx:17
static const ErrorType MissingAttributes
Definition ErrorCode.hxx:25
int ErrorType
Definition ErrorCode.hxx:8
static const ErrorType ResponseTimeout
Definition ErrorCode.hxx:22
static const ErrorType BufferTooSmall
Definition ErrorCode.hxx:16
static const ErrorType ErrorBase
Definition ErrorCode.hxx:13
static const ErrorType NoActiveDestination
Definition ErrorCode.hxx:20
static const ErrorType ReadError
Definition ErrorCode.hxx:21
static const ErrorType NoAllocation
Definition ErrorCode.hxx:19
static const ErrorType AlreadyAllocated
Definition ErrorCode.hxx:29
static const ErrorType GeneralError
Definition ErrorCode.hxx:11
static const ErrorType UnknownRequiredAttributes
Definition ErrorCode.hxx:31
static const ErrorType StrayResponse
Definition ErrorCode.hxx:30
static const ErrorType FrameError
Definition ErrorCode.hxx:23
static const ErrorType UnknownRemoteAddress
Definition ErrorCode.hxx:26
static const ErrorType InvalidRequestedTransport
Definition ErrorCode.hxx:27