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 #ifndef SRC_SHARED_CONNECTION_H_ | 5 #ifndef SRC_SHARED_CONNECTION_H_ |
6 #define SRC_SHARED_CONNECTION_H_ | 6 #define SRC_SHARED_CONNECTION_H_ |
7 | 7 |
8 #ifndef FLETCH_ENABLE_LIVE_CODING | 8 #ifndef FLETCH_ENABLE_LIVE_CODING |
9 #error "connection.h is only available when live coding is enabled." | 9 #error "connection.h is only available when live coding is enabled." |
10 #endif | 10 #endif |
11 | 11 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 Connection* Accept(); | 185 Connection* Accept(); |
186 | 186 |
187 private: | 187 private: |
188 Socket* socket_; | 188 Socket* socket_; |
189 int port_; | 189 int port_; |
190 }; | 190 }; |
191 | 191 |
192 } // namespace fletch | 192 } // namespace fletch |
193 | 193 |
194 #endif // SRC_SHARED_CONNECTION_H_ | 194 #endif // SRC_SHARED_CONNECTION_H_ |
OLD | NEW |