Re: return values of socket_recvmsg
| From: | Kalle Sommer Nielsen | Date: | Fri, 26 Jan 2018 06:58:23 +0000 |
| Subject: | Re: return values of socket_recvmsg | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101687@lists.php.net to get a copy of this message | ||
Hi Sam
2018-01-25 23:11 GMT+01:00 Sam Ding <samding@ca.ibm.com>:
>
> The test case ext/sockets/tests/socket_recvmsg.php has following output
> on x86_64:
>
> =======
> ...
> 1 Array
> 2 (
> 3 [name] => Array
> 4 (
> 5 [family] => 10
> 6 [addr] => ::1
> 7 [port] => 7001
> 8 [flowinfo] => 0
> 9 [scope_id] => 0
> 10 )
> 11
> 12 [control] => Array
> 13 (
> 14 [0] => Array
> 15 (
> 16 [level] => 41
> 17 [type] => 50
> 18 [data] => Array
> 19 (
> 20 [addr] => ::1
> 21 [ifindex] => 1
> 22 )
> 23 )
> 24 )
> ...
> =======
> This is output by c
> function:"socket_recvmsg"(/home/work/php/php/ext/sockets/sendrecvmsg.c:214),
You can find the implementation of socket_recvmsg() in the ext/sockets
directory here:
http://git.php.net/?p=php-src.git;a=blob;f=ext/sockets/sendrecvmsg.c;h=7b9c4e8ad357b73b514dc5feb8dc8d9ca215126b;hb=HEAD#l210
--
regards,
Kalle Sommer Nielsen
kalle@php.net