Gen. partnerAlgotech

PHP function stream_socket_sendto()

Sends a message to a socket, whether it is connected or not

|
September 11, 2019

Availability in PHP 5.0

Sends a message to a socket, whether it is connected or not

Parameters

Parameter Data type Default value Note
$socket resource not The socket to send data to.
$data string not The data to be sent.
$flags int null, The value of flags can be any combination of the following: possible values for flags
STREAM_OOB Process OOB (out-of-band) data.
$address string null The address specified when the socket stream was created will be used unless an alternate address is specified in address.

Return values

int

A result code, as an integer.

Other resources

Official documentation for stream-socket-sendto

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.