basicsocket.send(mesg, flags [, dest_sockaddr]) => numbytes_sent
Instance Public methods
send mesg via basicsocket.
mesg should be a string.
flags should be a bitwise OR of Socket::MSG_* constants.
dest_sockaddr should be a packed sockaddr string or an addrinfo.
1 2 3 4 | TCPSocket.open( "localhost" , 80 ) {|s| s.send "GET / HTTP/1.0\r\n\r\n" , 0 p s.read } |
Please login to continue.