Tells a stream created with stream_socket_server()
to bind to the specified target. Server sockets should always include this flag.

STREAM_SERVER_LISTEN *

Tells a stream created with stream_socket_server()
and bound using the STREAM_SERVER_BIND flag to start
listening on the socket. Connection-orientated transports (such as TCP)
must use this flag, otherwise the server socket will not be enabled.
Using this flag for connect-less transports (such as UDP) is an error.

STREAM_NOTIFY_RESOLVE *

A remote address required for this stream has been resolved, or the resolution
failed. See severity for an indication of which happened.

STREAM_NOTIFY_CONNECT

A connection with an external resource has been established.

STREAM_NOTIFY_AUTH_REQUIRED

Additional authorization is required to access the specified resource.
Typical issued with severity level of
STREAM_NOTIFY_SEVERITY_ERR.

STREAM_NOTIFY_MIME_TYPE_IS

The mime-type of resource has been identified,
refer to message for a description of the
discovered type.

STREAM_NOTIFY_FILE_SIZE_IS

The size of the resource has been discovered.

STREAM_NOTIFY_REDIRECTED

The external resource has redirected the stream to an alternate
location. Refer to message.

STREAM_NOTIFY_PROGRESS

Indicates current progress of the stream transfer in
bytes_transferred and possibly
bytes_max as well.

STREAM_NOTIFY_COMPLETED *

There is no more data available on the stream.

STREAM_NOTIFY_FAILURE

A generic error occurred on the stream, consult
message and message_code
for details.

STREAM_NOTIFY_AUTH_RESULT

Authorization has been completed (with or without success).

STREAM_NOTIFY_SEVERITY_INFO

Normal, non-error related, notification.

STREAM_NOTIFY_SEVERITY_WARN

Non critical error condition. Processing may continue.

STREAM_NOTIFY_SEVERITY_ERR

A critical error occurred. Processing cannot continue.

STREAM_IPPROTO_ICMP +

Provides a ICMP socket.

STREAM_IPPROTO_IP +

Provides a IP socket.

STREAM_IPPROTO_RAW +

Provides a RAW socket.

STREAM_IPPROTO_TCP +

Provides a TCP socket.

STREAM_IPPROTO_UDP +

Provides a UDP socket.

STREAM_PF_INET +

Internet Protocol Version 4 (IPv4).

STREAM_PF_INET6 +

Internet Protocol Version 6 (IPv6).

STREAM_PF_UNIX +

Unix system internal protocols.

STREAM_SOCK_DGRAM +

Provides datagrams, which are connectionless messages (UDP, for
example).

STREAM_SOCK_RAW +

Provides a raw socket, which provides access to internal network
protocols and interfaces. Usually this type of socket is just available
to the root user.