| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef PLATFORM_IMPL_EVENT_LOOP_H_ |
| #define PLATFORM_IMPL_EVENT_LOOP_H_ |
| |
| #include <sys/types.h> |
| |
| #include <vector> |
| |
| #include "platform/api/event_waiter.h" |
| #include "platform/api/network_runner.h" |
| #include "platform/base/error.h" |
| |
| namespace openscreen { |
| namespace platform { |
| |
| std::vector<UdpPacket> HandleUdpSocketReadEvents(const Events& events); |
| std::vector<UdpPacket> OnePlatformLoopIteration(EventWaiterPtr waiter); |
| |
| } // namespace platform |
| } // namespace openscreen |
| |
| #endif // PLATFORM_IMPL_EVENT_LOOP_H_ |