This guide describes commonly used protocols that must be in a component's sandbox services (for components v1) or capabilities (for components v2).
See examples of capability configuration for components v1 or components v2.
Typical protocols used for components that require networking are
fuchsia.posix.socket.Provider
for creating sockets (socket
).fuchsia.net.NameLookup
for resolving hostnames (getaddrinfo
).fuchsia.device.NameProvider
to get the device name (uname
).POSIX sockets are provided by libc and fdio through socket
calls which require the fuchsia.posix.socket.Provider
capability.
Address resolution is similarly provided by libc through getaddrinfo
which requires the fuchsia.net.NameLookup
capability.