⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
BasicSocket
/
View File Name :
sendmsg-i.ri
U:RDoc::AnyMethod[iI"sendmsg:ETI"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::BlankLine o; ; [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