Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
io_service_no_ssl.h
Go to the documentation of this 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
3// BSD-style license that can be found in the LICENSE file.
4
5#ifndef RUNTIME_BIN_IO_SERVICE_NO_SSL_H_
6#define RUNTIME_BIN_IO_SERVICE_NO_SSL_H_
7
8#if !defined(DART_IO_SECURE_SOCKET_DISABLED)
9#error "io_service_no_ssl.h can only be included on builds with IO enabled"
10#endif
11
12#include "bin/builtin.h"
13#include "bin/utils.h"
14
15namespace dart {
16namespace bin {
17
18// This list must be kept in sync with the list in sdk/lib/io/io_service.dart
19// In this modified version, though, the request 43 for SSLFilter::ProcessFilter
20// is removed, for use in contexts in which secure sockets are not enabled.
21#define IO_SERVICE_REQUEST_LIST(V) \
22 V(File, Exists, 0) \
23 V(File, Create, 1) \
24 V(File, Delete, 2) \
25 V(File, Rename, 3) \
26 V(File, Copy, 4) \
27 V(File, Open, 5) \
28 V(File, ResolveSymbolicLinks, 6) \
29 V(File, Close, 7) \
30 V(File, Position, 8) \
31 V(File, SetPosition, 9) \
32 V(File, Truncate, 10) \
33 V(File, Length, 11) \
34 V(File, LengthFromPath, 12) \
35 V(File, LastAccessed, 13) \
36 V(File, SetLastAccessed, 14) \
37 V(File, LastModified, 15) \
38 V(File, SetLastModified, 16) \
39 V(File, Flush, 17) \
40 V(File, ReadByte, 18) \
41 V(File, WriteByte, 19) \
42 V(File, Read, 20) \
43 V(File, ReadInto, 21) \
44 V(File, WriteFrom, 22) \
45 V(File, CreateLink, 23) \
46 V(File, DeleteLink, 24) \
47 V(File, RenameLink, 25) \
48 V(File, LinkTarget, 26) \
49 V(File, Type, 27) \
50 V(File, Identical, 28) \
51 V(File, Stat, 29) \
52 V(File, Lock, 30) \
53 V(File, CreatePipe, 31) \
54 V(Socket, Lookup, 32) \
55 V(Socket, ListInterfaces, 33) \
56 V(Socket, ReverseLookup, 34) \
57 V(Directory, Create, 35) \
58 V(Directory, Delete, 36) \
59 V(Directory, Exists, 37) \
60 V(Directory, CreateTemp, 38) \
61 V(Directory, ListStart, 39) \
62 V(Directory, ListNext, 40) \
63 V(Directory, ListStop, 41) \
64 V(Directory, Rename, 42)
65
66#define DECLARE_REQUEST(type, method, id) k##type##method##Request = id,
67
68class IOService {
69 public:
71
73
74 private:
75 DISALLOW_ALLOCATION();
77};
78
79} // namespace bin
80} // namespace dart
81
82#endif // RUNTIME_BIN_IO_SERVICE_NO_SSL_H_
static Dart_Port GetServicePort()
int64_t Dart_Port
Definition dart_api.h:1524
#define DECLARE_REQUEST(type, method, id)
Definition io_service.h:65
#define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName)
Definition globals.h:593