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_NATIVE_SOCKET_H_ | 5 #ifndef SRC_SHARED_NATIVE_SOCKET_H_ |
6 #define SRC_SHARED_NATIVE_SOCKET_H_ | 6 #define SRC_SHARED_NATIVE_SOCKET_H_ |
7 | 7 |
8 #ifndef FLETCH_ENABLE_LIVE_CODING | 8 #ifndef FLETCH_ENABLE_LIVE_CODING |
9 #error "native_socket.h is only available when live coding is enabled." | 9 #error "native_socket.h is only available when live coding is enabled." |
10 #endif | 10 #endif |
11 | 11 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 explicit Socket(SocketData* data); | 43 explicit Socket(SocketData* data); |
44 | 44 |
45 bool ShouldRetryAccept(int error); | 45 bool ShouldRetryAccept(int error); |
46 | 46 |
47 SocketData* data_; | 47 SocketData* data_; |
48 }; | 48 }; |
49 | 49 |
50 } // namespace fletch | 50 } // namespace fletch |
51 | 51 |
52 #endif // SRC_SHARED_NATIVE_SOCKET_H_ | 52 #endif // SRC_SHARED_NATIVE_SOCKET_H_ |
OLD | NEW |