Class: TCPSocket

Inherits:
Object show all
Defined in:
lib/utilrb/socket/tcp_socket.rb

Instance Method Summary collapse

Instance Method Details

#peer_addrObject


4
# File 'lib/utilrb/socket/tcp_socket.rb', line 4

def peer_addr; Socket::getnameinfo(getpeername)[0] end

#peer_infoObject


3
# File 'lib/utilrb/socket/tcp_socket.rb', line 3

def peer_info; Socket::getnameinfo(getpeername) end

#peer_portObject


5
# File 'lib/utilrb/socket/tcp_socket.rb', line 5

def peer_port; Socket::getnameinfo(getpeername)[1] end