Documentation

LocalIpcHub
in package
implements IpcHub uses ForbidCloning, ForbidSerialization

FinalYes

Table of Contents

Interfaces

IpcHub

Properties

$delegate  : SocketIpcHub
$toUnlink  : string|null

Methods

__construct()  : mixed
__destruct()  : mixed
__serialize()  : never
__unserialize()  : never
accept()  : ResourceSocket
close()  : void
Closes the resource, marking it as unusable.
generateKey()  : non-empty-string
getUri()  : non-empty-string
isClosed()  : bool
Returns whether this resource has been closed.
onClose()  : void
Registers a callback that is invoked when this resource is closed.
__clone()  : mixed
unlink()  : void

Properties

Methods

__unserialize()

public final __unserialize(array<string|int, mixed> $data) : never
Parameters
$data : array<string|int, mixed>
Return values
never

close()

Closes the resource, marking it as unusable.

public close() : void

Whether pending operations are aborted or not is implementation dependent.

generateKey()

public generateKey() : non-empty-string
Return values
non-empty-string

Pass the key returned from this method to the connecting context and accept().

getUri()

public getUri() : non-empty-string
Return values
non-empty-string

URI to use with connect().

isClosed()

Returns whether this resource has been closed.

public isClosed() : bool
Return values
bool

true if closed, otherwise false.

onClose()

Registers a callback that is invoked when this resource is closed.

public onClose(Closure $onClose) : void
Parameters
$onClose : Closure

        
On this page

Search results