| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_LIBJINGLE_XMPP_XMPPSOCKET_H_ | 11 #ifndef WEBRTC_LIBJINGLE_XMPP_XMPPSOCKET_H_ |
| 12 #define WEBRTC_LIBJINGLE_XMPP_XMPPSOCKET_H_ | 12 #define WEBRTC_LIBJINGLE_XMPP_XMPPSOCKET_H_ |
| 13 | 13 |
| 14 #include "webrtc/libjingle/xmpp/asyncsocket.h" | 14 #include "webrtc/libjingle/xmpp/asyncsocket.h" |
| 15 #include "webrtc/libjingle/xmpp/xmppengine.h" | 15 #include "webrtc/libjingle/xmpp/xmppengine.h" |
| 16 #include "webrtc/base/asyncsocket.h" | 16 #include "webrtc/base/asyncsocket.h" |
| 17 #include "webrtc/base/bytebuffer.h" | 17 #include "webrtc/base/buffer.h" |
| 18 #include "webrtc/base/sigslot.h" | 18 #include "webrtc/base/sigslot.h" |
| 19 | 19 |
| 20 // The below define selects the SSLStreamAdapter implementation for | 20 // The below define selects the SSLStreamAdapter implementation for |
| 21 // SSL, as opposed to the SSLAdapter socket adapter. | 21 // SSL, as opposed to the SSLAdapter socket adapter. |
| 22 // #define USE_SSLSTREAM | 22 // #define USE_SSLSTREAM |
| 23 | 23 |
| 24 namespace rtc { | 24 namespace rtc { |
| 25 class StreamInterface; | 25 class StreamInterface; |
| 26 class SocketAddress; | 26 class SocketAddress; |
| 27 }; | 27 }; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 55 void OnCloseEvent(rtc::AsyncSocket * socket, int error); | 55 void OnCloseEvent(rtc::AsyncSocket * socket, int error); |
| 56 #else // USE_SSLSTREAM | 56 #else // USE_SSLSTREAM |
| 57 void OnEvent(rtc::StreamInterface* stream, int events, int err); | 57 void OnEvent(rtc::StreamInterface* stream, int events, int err); |
| 58 #endif // USE_SSLSTREAM | 58 #endif // USE_SSLSTREAM |
| 59 | 59 |
| 60 rtc::AsyncSocket * cricket_socket_; | 60 rtc::AsyncSocket * cricket_socket_; |
| 61 #ifdef USE_SSLSTREAM | 61 #ifdef USE_SSLSTREAM |
| 62 rtc::StreamInterface *stream_; | 62 rtc::StreamInterface *stream_; |
| 63 #endif // USE_SSLSTREAM | 63 #endif // USE_SSLSTREAM |
| 64 buzz::AsyncSocket::State state_; | 64 buzz::AsyncSocket::State state_; |
| 65 rtc::ByteBuffer buffer_; | 65 rtc::Buffer buffer_; |
| 66 buzz::TlsOptions tls_; | 66 buzz::TlsOptions tls_; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace buzz | 69 } // namespace buzz |
| 70 | 70 |
| 71 #endif // WEBRTC_LIBJINGLE_XMPP_XMPPSOCKET_H_ | 71 #endif // WEBRTC_LIBJINGLE_XMPP_XMPPSOCKET_H_ |
| 72 | 72 |
| OLD | NEW |