| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 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 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 return sock; | 36 return sock; |
| 37 #elif defined(WEBRTC_POSIX) | 37 #elif defined(WEBRTC_POSIX) |
| 38 rtc::Thread* thread = rtc::Thread::Current(); | 38 rtc::Thread* thread = rtc::Thread::Current(); |
| 39 ASSERT(thread != NULL); | 39 ASSERT(thread != NULL); |
| 40 return thread->socketserver()->CreateAsyncSocket(family, SOCK_STREAM); | 40 return thread->socketserver()->CreateAsyncSocket(family, SOCK_STREAM); |
| 41 #else | 41 #else |
| 42 #error Platform not supported. | 42 #error Platform not supported. |
| 43 #endif | 43 #endif |
| 44 } | 44 } |
| 45 | 45 |
| 46 } | 46 } // namespace |
| 47 | 47 |
| 48 PeerConnectionClient::PeerConnectionClient() | 48 PeerConnectionClient::PeerConnectionClient() |
| 49 : callback_(NULL), | 49 : callback_(NULL), |
| 50 resolver_(NULL), | 50 resolver_(NULL), |
| 51 state_(NOT_CONNECTED), | 51 state_(NOT_CONNECTED), |
| 52 my_id_(-1) { | 52 my_id_(-1) { |
| 53 } | 53 } |
| 54 | 54 |
| 55 PeerConnectionClient::~PeerConnectionClient() { | 55 PeerConnectionClient::~PeerConnectionClient() { |
| 56 } | 56 } |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 Close(); | 505 Close(); |
| 506 callback_->OnDisconnected(); | 506 callback_->OnDisconnected(); |
| 507 } | 507 } |
| 508 } | 508 } |
| 509 } | 509 } |
| 510 | 510 |
| 511 void PeerConnectionClient::OnMessage(rtc::Message* msg) { | 511 void PeerConnectionClient::OnMessage(rtc::Message* msg) { |
| 512 // ignore msg; there is currently only one supported message ("retry") | 512 // ignore msg; there is currently only one supported message ("retry") |
| 513 DoConnect(); | 513 DoConnect(); |
| 514 } | 514 } |
| OLD | NEW |