socket_sendto
brefphp/bref
Supported Versions: PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8
Sends a message to a socket, whether it is connected or not
socket_sendto
(
Socket $socket
,
string $data
,
int $length
,
int $flags
,
string $address
,
?
int $port
=
null
):
int
|
false
socket_sendto
(
$sock
,
$message
,
strlen
(
$message
),
0
,
'3.219.198.164'
,
8125
);
socket_close
(
$sock
);
}
}
src/Runtime/LambdaRuntime.php