MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.162
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/BasicSocket/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/BasicSocket/sendmsg-i.ri
U:RDoc::AnyMethod[iI"sendmsg:EFI"BasicSocket#sendmsg;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"Msendmsg sends a message using sendmsg(2) system call in blocking manner.;To:RDoc::Markup::BlankLineo;
;	[I" _mesg_ is a string to send.;T@o;
;	[I"F_flags_ is bitwise OR of MSG_* constants such as Socket::MSG_OOB.;T@o;
;	[I"Q_dest_sockaddr_ is a destination socket address for connection-less socket. ;TI"EIt should be a sockaddr such as a result of Socket.sockaddr_in. ;TI"(An Addrinfo object can be used too.;T@o;
;	[	I"-_controls_ is a list of ancillary data. ;TI"BThe element of _controls_ should be Socket::AncillaryData or ;TI"3-elements array. ;TI"HThe 3-element array should contains cmsg_level, cmsg_type and data.;T@o;
;	[I"WThe return value, _numbytes_sent_ is an integer which is the number of bytes sent.;T@o;
;	[I"9sendmsg can be used to implement send_io as follows:;T@o:RDoc::Markup::Verbatim;	[I""# use Socket::AncillaryData.
;TI"Mancdata = Socket::AncillaryData.int(:UNIX, :SOCKET, :RIGHTS, io.fileno)
;TI"(sock.sendmsg("a", 0, nil, ancdata)
;TI"
;TI"# use 3-element array.
;TI":ancdata = [:SOCKET, :RIGHTS, [io.fileno].pack("i!")]
;TI"(sock.sendmsg("\0", 0, nil, ancdata);T:@format0:
@fileI"ext/socket/lib/socket.rb;T:0@omit_headings_from_table_of_contents_below0I"Wbasicsocket.sendmsg(mesg, flags=0, dest_sockaddr=nil, *controls) => numbytes_sent
;T0[I"6(mesg, flags = 0, dest_sockaddr = nil, *controls);T@/FI"BasicSocket;TcRDoc::NormalClass00

MMCT - 2023