⚝
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
/
Socket
/
View File Name :
pair-c.ri
U:RDoc::AnyMethod[iI" pair:ETI"Socket::pair;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"4Creates a pair of sockets connected each other.;To:RDoc::Markup::BlankLine o; ; [I"S_domain_ should be a communications domain such as: :INET, :INET6, :UNIX, etc.;T@o; ; [I"L_socktype_ should be a socket type such as: :STREAM, :DGRAM, :RAW, etc.;T@o; ; [I"<_protocol_ should be a protocol defined in the domain, ;TI""defaults to 0 for the domain.;T@o:RDoc::Markup::Verbatim; [I"-s1, s2 = Socket.pair(:UNIX, :STREAM, 0) ;TI"s1.send "a", 0 ;TI"s1.send "b", 0 ;TI"s1.close ;TI"p s2.recv(10) #=> "ab" ;TI"p s2.recv(10) #=> "" ;TI"p s2.recv(10) #=> "" ;TI" ;TI",s1, s2 = Socket.pair(:UNIX, :DGRAM, 0) ;TI"s1.send "a", 0 ;TI"s1.send "b", 0 ;TI"p s2.recv(10) #=> "a" ;TI"p s2.recv(10) #=> "b";T:@format0: @fileI"ext/socket/socket.c;T:0@omit_headings_from_table_of_contents_below0I"DSocket.pair(domain, type, protocol) => [socket1, socket2];T0[ I"(p1, p2, p3 = v3);T@(FI"Socket;TcRDoc::NormalClass00