functions.php
Table of Contents
Functions
- readKey() : string
- connect() : Socket
- Note that this is designed to be used in the child process/thread to connect to an IPC socket.
Functions
readKey()
readKey(ReadableResourceStream|Socket $stream[, Cancellation|null $cancellation = null ][, positive-int $keyLength = SocketIpcHub::DEFAULT_KEY_LENGTH ]) : string
Parameters
- $stream : ReadableResourceStream|Socket
- $cancellation : Cancellation|null = null
- $keyLength : positive-int = SocketIpcHub::DEFAULT_KEY_LENGTH
Return values
stringconnect()
Note that this is designed to be used in the child process/thread to connect to an IPC socket.
connect(string $uri, string $key[, Cancellation|null $cancellation = null ][, SocketConnector|null $connector = null ]) : Socket
Parameters
- $uri : string
- $key : string
- $cancellation : Cancellation|null = null
- $connector : SocketConnector|null = null