dart-sdk/runtime/bin/socket_fuchsia.h
Zachary Anderson 14233482d9 Fuchsia: Partial implementation of dart:io sockets
This changes the eventhandler to epoll and adds some code for sockets
to runtime/bin/sockets_fuchsia.cc. It also adds some simple tests
to hello_fuchsia.dart.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2515643004 .
2016-11-20 22:04:14 -08:00

17 lines
509 B
C

// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef RUNTIME_BIN_SOCKET_FUCHSIA_H_
#define RUNTIME_BIN_SOCKET_FUCHSIA_H_
#if !defined(RUNTIME_BIN_SOCKET_H_)
#error Do not include socket_fuchsia.h directly. Use socket.h.
#endif
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/socket.h>
#endif // RUNTIME_BIN_SOCKET_FUCHSIA_H_