socket_atmark
Determines whether socket is at out-of-band mark
Description
bool socket_atmark(Socket $socket
)
Parameters
-
socket
-
A Socket instance created with socket_create.
Return Values
Returns true
on success or false
on failure.
Examples
Example #1 Using socket_atmark to set the source address
<?php
// Create a new socket
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
var_dump(socket_atmark($sock));
// Close
socket_close($sock);
?>
See Also
- socket_connect
- socket_create