Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Side by Side Diff: src/shared/native_socket_lk.cc

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/shared/native_socket_linux.cc ('k') | src/shared/native_socket_macos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 #if defined(FLETCH_TARGET_OS_LK) && defined(FLETCH_ENABLE_LIVE_CODING) 5 #if defined(DARTINO_TARGET_OS_LK) && defined(DARTINO_ENABLE_LIVE_CODING)
6 6
7 #include "src/shared/native_socket.h" 7 #include "src/shared/native_socket.h"
8 8
9 #include <stdlib.h> 9 #include <stdlib.h>
10 // TODO(ajohnsen): Should not be required: 10 // TODO(ajohnsen): Should not be required:
11 extern "C" { 11 extern "C" {
12 #include <lib/minip.h> 12 #include <lib/minip.h>
13 } 13 }
14 14
15 #include "src/shared/assert.h" 15 #include "src/shared/assert.h"
16 #include "src/shared/utils.h" 16 #include "src/shared/utils.h"
17 17
18 namespace fletch { 18 namespace dartino {
19 19
20 struct Socket::SocketData { 20 struct Socket::SocketData {
21 SocketData() : socket(NULL), port(-1) {} 21 SocketData() : socket(NULL), port(-1) {}
22 SocketData(tcp_socket_t* socket, int port) : socket(socket), port(port) {} 22 SocketData(tcp_socket_t* socket, int port) : socket(socket), port(port) {}
23 23
24 tcp_socket_t* socket; 24 tcp_socket_t* socket;
25 int port; 25 int port;
26 }; 26 };
27 27
28 Socket::Socket() : data_(new SocketData()) {} 28 Socket::Socket() : data_(new SocketData()) {}
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 int Socket::FileDescriptor() { 91 int Socket::FileDescriptor() {
92 UNIMPLEMENTED(); 92 UNIMPLEMENTED();
93 return -1; 93 return -1;
94 } 94 }
95 95
96 void Socket::SetTCPNoDelay(bool value) { 96 void Socket::SetTCPNoDelay(bool value) {
97 // Not available. 97 // Not available.
98 } 98 }
99 99
100 } // namespace fletch 100 } // namespace dartino
101 101
102 #endif // def'd(FLETCH_TARGET_OS_LK) && def'd(FLETCH_ENABLE_LIVE_CODING) 102 #endif // def'd(DARTINO_TARGET_OS_LK) && def'd(DARTINO_ENABLE_LIVE_CODING)
OLDNEW
« no previous file with comments | « src/shared/native_socket_linux.cc ('k') | src/shared/native_socket_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698