Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

socket_sendmsg

Description

The socket_sendmsg of Sockets for PHP send a message.

Syntax

socket_sendmsg(
    Socket $socket,
    array $message,
    int $flags = 0
): int|false

Parameters

socket

A Socket instance created using socket_create().

message

The message.

flags

The value of flags can be any combination of the following flags, joined with the binary OR (|) operator.

ConstantDescription
MSG_OOBSend out-of-band data.
MSG_EORIndicate a record mark. The sent data completes the record.
MSG_EOFClose the sender side of the socket and include an appropriate notification of this at the end of the sent data. The sent data completes the transaction.
MSG_DONTROUTEBypass routing, use direct interface.

Return

Returns the number of bytes sent, or false on failure.

HomeMenu