| 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 14 matching lines...) Expand all Loading... |
| 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #if defined(_MSC_VER) && _MSC_VER < 1300 | 28 #if defined(_MSC_VER) && _MSC_VER < 1300 |
| 29 #pragma warning(disable:4786) | 29 #pragma warning(disable:4786) |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 #include <errno.h> | 32 #include <errno.h> |
| 33 | 33 |
| 34 #include <algorithm> | 34 #include <algorithm> |
| 35 #include <cstring> |
| 35 #include <iostream> | 36 #include <iostream> |
| 36 #include <vector> | 37 #include <vector> |
| 37 | 38 |
| 38 #include "talk/base/asyncudpsocket.h" | 39 #include "talk/base/asyncudpsocket.h" |
| 39 #include "talk/base/asynctcpsocket.h" | 40 #include "talk/base/asynctcpsocket.h" |
| 40 #include "talk/base/helpers.h" | 41 #include "talk/base/helpers.h" |
| 41 #include "talk/base/logging.h" | 42 #include "talk/base/logging.h" |
| 42 #include "talk/base/scoped_ptr.h" | 43 #include "talk/base/scoped_ptr.h" |
| 43 #include "talk/base/socketadapters.h" | 44 #include "talk/base/socketadapters.h" |
| 44 #include "talk/p2p/base/common.h" | 45 #include "talk/p2p/base/common.h" |
| (...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 917 if (sent <= 0) { | 918 if (sent <= 0) { |
| 918 assert(sent < 0); | 919 assert(sent < 0); |
| 919 error_ = port_->GetError(); | 920 error_ = port_->GetError(); |
| 920 } else { | 921 } else { |
| 921 sent_total_bytes_ += sent; | 922 sent_total_bytes_ += sent; |
| 922 } | 923 } |
| 923 return sent; | 924 return sent; |
| 924 } | 925 } |
| 925 | 926 |
| 926 } // namespace cricket | 927 } // namespace cricket |
| OLD | NEW |