U:RDoc::AnyMethod[iI" shutdown:ETI"BasicSocket#shutdown;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"#Calls shutdown(2) system call.;To:RDoc::Markup::BlankLineo; ; [I"8s.shutdown(Socket::SHUT_RD) disallows further read.;T@o; ; [I"9s.shutdown(Socket::SHUT_WR) disallows further write.;T@o; ; [I"Ds.shutdown(Socket::SHUT_RDWR) disallows further read and write.;T@o; ; [I"#_how_ can be symbol or string:;To:RDoc::Markup::List: @type: BULLET: @items[o:RDoc::Markup::ListItem: @label0; [o; ; [I"G:RD, :SHUT_RD, "RD" and "SHUT_RD" are accepted as Socket::SHUT_RD.;To;;0; [o; ; [I"G:WR, :SHUT_WR, "WR" and "SHUT_WR" are accepted as Socket::SHUT_WR.;To;;0; [ o; ; [I"Q:RDWR, :SHUT_RDWR, "RDWR" and "SHUT_RDWR" are accepted as Socket::SHUT_RDWR.;T@o; ; [I"UNIXSocket.pair {|s1, s2|;To:RDoc::Markup::Verbatim; [ I"s1.puts "ping" ;TI"s1.shutdown(:WR) ;TI"%p s2.read #=> "ping\n" ;TI"s2.puts "pong" ;TI"s2.close ;TI"%p s1.read #=> "pong\n" ;T: @format0o; ; [I"};T: @fileI"ext/socket/basicsocket.c;T:0@omit_headings_from_table_of_contents_below0I"&basicsocket.shutdown([how]) => 0 ;T0[I"(p1 = v1);T@:FI"BasicSocket;TcRDoc::NormalClass00