| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2004--2005, Google Inc. | 3 * Copyright 2004--2005, Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "talk/base/logging.h" | 28 #include "talk/base/logging.h" |
| 29 #include "talk/p2p/base/stun.h" | 29 #include "talk/p2p/base/stun.h" |
| 30 #include <iostream> | 30 #include <iostream> |
| 31 #include <cassert> | 31 #include <cassert> |
| 32 #include <cstring> |
| 32 | 33 |
| 33 #if defined(_MSC_VER) && _MSC_VER < 1300 | 34 #if defined(_MSC_VER) && _MSC_VER < 1300 |
| 34 namespace std { | 35 namespace std { |
| 35 using ::memcpy; | 36 using ::memcpy; |
| 36 } | 37 } |
| 37 #endif | 38 #endif |
| 38 | 39 |
| 39 using talk_base::ByteBuffer; | 40 using talk_base::ByteBuffer; |
| 40 | 41 |
| 41 namespace cricket { | 42 namespace cricket { |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 case STUN_ALLOCATE_REQUEST: | 570 case STUN_ALLOCATE_REQUEST: |
| 570 return STUN_ALLOCATE_ERROR_RESPONSE; | 571 return STUN_ALLOCATE_ERROR_RESPONSE; |
| 571 case STUN_SEND_REQUEST: | 572 case STUN_SEND_REQUEST: |
| 572 return STUN_SEND_ERROR_RESPONSE; | 573 return STUN_SEND_ERROR_RESPONSE; |
| 573 default: | 574 default: |
| 574 return STUN_BINDING_ERROR_RESPONSE; | 575 return STUN_BINDING_ERROR_RESPONSE; |
| 575 } | 576 } |
| 576 } | 577 } |
| 577 | 578 |
| 578 } // namespace cricket | 579 } // namespace cricket |
| OLD | NEW |