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