| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BIN_SOCKET_H_ | 5 #ifndef BIN_SOCKET_H_ |
| 6 #define BIN_SOCKET_H_ | 6 #define BIN_SOCKET_H_ |
| 7 | 7 |
| 8 #include "platform/globals.h" | 8 #include "platform/globals.h" |
| 9 | 9 |
| 10 #include "bin/builtin.h" | 10 #include "bin/builtin.h" |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 static intptr_t CreateConnect(RawAddr addr, | 232 static intptr_t CreateConnect(RawAddr addr, |
| 233 const intptr_t port); | 233 const intptr_t port); |
| 234 static intptr_t CreateBindDatagram( | 234 static intptr_t CreateBindDatagram( |
| 235 RawAddr* addr, intptr_t port, bool reuseAddress); | 235 RawAddr* addr, intptr_t port, bool reuseAddress); |
| 236 static intptr_t GetPort(intptr_t fd); | 236 static intptr_t GetPort(intptr_t fd); |
| 237 static SocketAddress* GetRemotePeer(intptr_t fd, intptr_t* port); | 237 static SocketAddress* GetRemotePeer(intptr_t fd, intptr_t* port); |
| 238 static void GetError(intptr_t fd, OSError* os_error); | 238 static void GetError(intptr_t fd, OSError* os_error); |
| 239 static int GetType(intptr_t fd); | 239 static int GetType(intptr_t fd); |
| 240 static intptr_t GetStdioHandle(intptr_t num); | 240 static intptr_t GetStdioHandle(intptr_t num); |
| 241 static void Close(intptr_t fd); | 241 static void Close(intptr_t fd); |
| 242 static bool SetNonBlocking(intptr_t fd); | |
| 243 static bool SetBlocking(intptr_t fd); | |
| 244 static bool GetNoDelay(intptr_t fd, bool* enabled); | 242 static bool GetNoDelay(intptr_t fd, bool* enabled); |
| 245 static bool SetNoDelay(intptr_t fd, bool enabled); | 243 static bool SetNoDelay(intptr_t fd, bool enabled); |
| 246 static bool GetMulticastLoop(intptr_t fd, intptr_t protocol, bool* enabled); | 244 static bool GetMulticastLoop(intptr_t fd, intptr_t protocol, bool* enabled); |
| 247 static bool SetMulticastLoop(intptr_t fd, intptr_t protocol, bool enabled); | 245 static bool SetMulticastLoop(intptr_t fd, intptr_t protocol, bool enabled); |
| 248 static bool GetMulticastHops(intptr_t fd, intptr_t protocol, int* value); | 246 static bool GetMulticastHops(intptr_t fd, intptr_t protocol, int* value); |
| 249 static bool SetMulticastHops(intptr_t fd, intptr_t protocol, int value); | 247 static bool SetMulticastHops(intptr_t fd, intptr_t protocol, int value); |
| 250 static bool GetBroadcast(intptr_t fd, bool* value); | 248 static bool GetBroadcast(intptr_t fd, bool* value); |
| 251 static bool SetBroadcast(intptr_t fd, bool value); | 249 static bool SetBroadcast(intptr_t fd, bool value); |
| 252 static bool JoinMulticast( | 250 static bool JoinMulticast( |
| 253 intptr_t fd, RawAddr* addr, RawAddr* interface, int interfaceIndex); | 251 intptr_t fd, RawAddr* addr, RawAddr* interface, int interfaceIndex); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 307 |
| 310 private: | 308 private: |
| 311 DISALLOW_ALLOCATION(); | 309 DISALLOW_ALLOCATION(); |
| 312 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); | 310 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); |
| 313 }; | 311 }; |
| 314 | 312 |
| 315 } // namespace bin | 313 } // namespace bin |
| 316 } // namespace dart | 314 } // namespace dart |
| 317 | 315 |
| 318 #endif // BIN_SOCKET_H_ | 316 #endif // BIN_SOCKET_H_ |
| OLD | NEW |