| OLD | NEW |
| 1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #ifdef FLETCH_ENABLE_LIVE_CODING | 5 #ifdef FLETCH_ENABLE_LIVE_CODING |
| 6 | 6 |
| 7 #include "src/shared/connection.h" | 7 #include "src/shared/connection.h" |
| 8 | 8 |
| 9 #include "src/shared/assert.h" | 9 #include "src/shared/assert.h" |
| 10 #include "src/shared/globals.h" | 10 #include "src/shared/globals.h" |
| 11 #include "src/shared/native_socket.h" | 11 #include "src/shared/native_socket.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 int ConnectionListener::Port() { return port_; } | 170 int ConnectionListener::Port() { return port_; } |
| 171 | 171 |
| 172 Connection* ConnectionListener::Accept() { | 172 Connection* ConnectionListener::Accept() { |
| 173 Socket* child = socket_->Accept(); | 173 Socket* child = socket_->Accept(); |
| 174 return new Connection("", 0, child); | 174 return new Connection("", 0, child); |
| 175 } | 175 } |
| 176 | 176 |
| 177 } // namespace fletch | 177 } // namespace fletch |
| 178 | 178 |
| 179 #endif // FLETCH_ENABLE_LIVE_CODING | 179 #endif // FLETCH_ENABLE_LIVE_CODING |
| OLD | NEW |