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

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

Issue 1649703002: Update project authors statements to Dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: 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_macos.cc ('k') | src/shared/native_socket_windows.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) 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 #if defined(FLETCH_TARGET_OS_POSIX) && defined(FLETCH_ENABLE_LIVE_CODING) 5 #if defined(FLETCH_TARGET_OS_POSIX) && defined(FLETCH_ENABLE_LIVE_CODING)
6 6
7 #include "src/shared/native_socket.h" 7 #include "src/shared/native_socket.h"
8 8
9 #include <arpa/inet.h> 9 #include <arpa/inet.h>
10 #include <errno.h> 10 #include <errno.h>
11 #include <fcntl.h> 11 #include <fcntl.h>
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void Socket::SetTCPNoDelay(bool value) { 157 void Socket::SetTCPNoDelay(bool value) {
158 int option = value ? 1 : 0; 158 int option = value ? 1 : 0;
159 int status = 159 int status =
160 setsockopt(data_->fd, IPPROTO_TCP, TCP_NODELAY, &option, sizeof(option)); 160 setsockopt(data_->fd, IPPROTO_TCP, TCP_NODELAY, &option, sizeof(option));
161 if (status == -1) perror("Failed setting TCP_NODELAY socket options."); 161 if (status == -1) perror("Failed setting TCP_NODELAY socket options.");
162 } 162 }
163 163
164 } // namespace fletch 164 } // namespace fletch
165 165
166 #endif // def'd(FLETCH_TARGET_OS_POSIX) && def'd(FLETCH_ENABLE_LIVE_CODING) 166 #endif // def'd(FLETCH_TARGET_OS_POSIX) && def'd(FLETCH_ENABLE_LIVE_CODING)
OLDNEW
« no previous file with comments | « src/shared/native_socket_macos.cc ('k') | src/shared/native_socket_windows.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698