Class: TCPSocket (Ruby 2.7.5)
Description: Class : TCPSocket - Ruby 2.7.5

### Home Classes Methods

### In Files

- resolv-replace.rb

### Parent

IPSocket

### Methods

- ::new

### Class/Module Index

Quicksearch

- IPSocket
- SOCKSSocket
- TCPSocket
- UDPSocket

No matching classes.

# TCPSocket

### Public Class Methods

new(host, serv, *rest) click to toggle source

                   # File resolv-replace.rb, line 23
    def initialize(host, serv, *rest)
      rest[0] = IPSocket.getaddress(rest[0]) if rest[0]
      original_resolv_initialize(IPSocket.getaddress(host), serv, *rest)
    end