class TCPSocket
- TCPSocket
- IPSocket
- Socket
- IO
- Reference
- Object
Overview
A Transmission Control Protocol (TCP/IP) socket.
NOTE To use TCPSocket
, you must explicitly import it with require "socket"
Usage example:
require "socket"
client = TCPSocket.new("localhost", 1234)
client << "message\n"
response = client.gets
client.close
Defined in:
invidious/helpers/helpers.crConstructors
Constructor Detail
def self.new(host, port, dns_timeout = nil, connect_timeout = nil, family = Socket::Family::UNSPEC)
#