# Table of Contents - socket: Ruby Standard Library Documentation

## Classes and Modules

- Addrinfo
- BasicSocket
- IPSocket
- Object
- SOCKSSocket
- Socket
  - What’s a socket?
  - Quick start
  - Exception Handling
  - Convenience methods
  - Documentation by
- Socket::AncillaryData
- Socket::Constants
- Socket::HostnameResolutionResult
- Socket::HostnameResolutionStore
- Socket::Ifaddr
- Socket::Option
- Socket::ResolutionError
- Socket::UDPSource
- SocketError
- TCPServer
- TCPSocket
- UDPSocket
- UNIXServer
- UNIXSocket

## Methods

- ::accept_loop — Socket
- ::bool — Socket::Option
- ::byte — Socket::Option
- ::current_clock_time — Socket
- ::do_not_reverse_lookup — BasicSocket
- ::do_not_reverse_lookup= — BasicSocket
- ::expired? — Socket
- ::for_fd — BasicSocket
- ::foreach — Addrinfo
- ::getaddress — IPSocket
- ::getaddrinfo — Socket
- ::getaddrinfo — Addrinfo
- ::gethostbyaddr — Socket
- ::gethostbyname — Socket
- ::gethostbyname — TCPSocket
- ::gethostname — Socket
- ::getifaddrs — Socket
- ::getnameinfo — Socket
- ::getservbyname — Socket
- ::getservbyport — Socket
- ::int — Socket::AncillaryData
- ::int — Socket::Option
- ::ip — Addrinfo
- ::ip_address? — Socket
- ::ip_address_list — Socket
- ::ip_pktinfo — Socket::AncillaryData
- ::ipv4_multicast_loop — Socket::Option
- ::ipv4_multicast_ttl — Socket::Option
- ::ipv6_pktinfo — Socket::AncillaryData
- ::linger — Socket::Option
- ::new — Socket
- ::new — Socket::AncillaryData
- ::new — Addrinfo
- ::new — Socket::HostnameResolutionResult
- ::new — Socket::HostnameResolutionStore
- ::new — Socket::UDPSource
- ::new — UDPSocket
- ::new — TCPServer
- ::new — UNIXServer
- ::new — Socket::Option
- ::new — SOCKSSocket
- ::new — TCPSocket
- ::new — UNIXSocket
- ::pack_sockaddr_in — Socket
- ::pack_sockaddr_un — Socket
- ::pair — Socket
- ::pair — UNIXSocket
- ::resolve_hostname — Socket
- ::second_to_timeout — Socket
- ::sockaddr_in — Socket
- ::sockaddr_un — Socket
- ::socketpair — Socket
- ::socketpair — UNIXSocket
- ::tcp — Socket
- ::tcp — Addrinfo
- ::tcp_fast_fallback — Socket
- ::tcp_fast_fallback= — Socket
- ::tcp_server_loop — Socket
- ::tcp_server_sockets — Socket
- ::tcp_with_fast_fallback — Socket
- ::tcp_without_fast_fallback — Socket
- ::udp — Addrinfo
- ::udp_server_loop — Socket
- ::udp_server_loop_on — Socket
- ::udp_server_recv — Socket
- ::udp_server_sockets — Socket
- ::unix — Socket
- ::unix — Addrinfo
- ::unix_rights — Socket::AncillaryData
- ::unix_server_loop — Socket
- ::unix_server_socket — Socket
- ::unix_socket_abstract_name? — Socket
- ::unpack_sockaddr_in — Socket
- ::unpack_sockaddr_un — Socket
- #accept — Socket
- #accept — TCPServer
- #accept — UNIXServer
- #accept_nonblock — Socket
- #accept_nonblock — TCPServer
- #accept_nonblock — UNIXServer
- #add — Socket::HostnameResolutionResult
- #add_error — Socket::HostnameResolutionStore
- #add_resolved — Socket::HostnameResolutionStore
- #addr — Socket::Ifaddr
- #addr — IPSocket
- #addr — UNIXSocket
- #afamily — Addrinfo
- #any_addrinfos? — Socket::HostnameResolutionStore
- #any_unresolved_family? — Socket::HostnameResolutionStore
- #bind — Socket
- #bind — Addrinfo
- #bind — UDPSocket
- #bool — Socket::Option
- #broadaddr — Socket::Ifaddr
- #byte — Socket::Option
- #c_str — Object
- #canonname — Addrinfo
- #close — Socket::HostnameResolutionResult
- #close — SOCKSSocket
- #close_read — BasicSocket
- #close_write — BasicSocket
- #cmsg_is? — Socket::AncillaryData
- #connect — Socket
- #connect — Addrinfo
- #connect — UDPSocket
- #connect_address — BasicSocket
- #connect_from — Addrinfo
- #connect_internal — Addrinfo
- #connect_nonblock — Socket
- #connect_to — Addrinfo
- #data — Socket::AncillaryData
- #data — Socket::Option
- #def_intern — Object
- #def_name_to_int — Object
- #do_not_reverse_lookup — BasicSocket
- #do_not_reverse_lookup= — BasicSocket
- #dstaddr — Socket::Ifaddr
- #each_const — Object
- #each_name — Object
- #each_names_with_len — Object
- #empty_addrinfos? — Socket::HostnameResolutionStore
- #error_code — Socket::ResolutionError
- #family — Socket::AncillaryData
- #family — Socket::Option
- #family_addrinfo — Addrinfo
- #flags — Socket::Ifaddr
- #get — Socket::HostnameResolutionResult
- #get_addrinfo — Socket::HostnameResolutionStore
- #getnameinfo — Addrinfo
- #getpeereid — BasicSocket
- #getpeername — BasicSocket
- #getsockname — BasicSocket
- #getsockopt — BasicSocket
- #ifindex — Socket::Ifaddr
- #inspect — Socket::AncillaryData
- #inspect — Socket::Ifaddr
- #inspect — IPSocket
- #inspect — Addrinfo
- #inspect — Socket::Option
- #inspect_sockaddr — Addrinfo
- #int — Socket::AncillaryData
- #int — Socket::Option
- #ip? — Addrinfo
- #ip_address — Addrinfo
- #ip_pktinfo — Socket::AncillaryData
- #ip_port — Addrinfo
- #ip_unpack — Addrinfo
- #ipv4? — Addrinfo
- #ipv4_loopback? — Addrinfo
- #ipv4_multicast? — Addrinfo
- #ipv4_multicast_loop — Socket::Option
- #ipv4_multicast_ttl — Socket::Option
- #ipv4_private? — Addrinfo
- #ipv6? — Addrinfo
- #ipv6_linklocal? — Addrinfo
- #ipv6_loopback? — Addrinfo
- #ipv6_mc_global? — Addrinfo
- #ipv6_mc_linklocal? — Addrinfo
- #ipv6_mc_nodelocal? — Addrinfo
- #ipv6_mc_orglocal? — Addrinfo
- #ipv6_mc_sitelocal? — Addrinfo
- #ipv6_multicast? — Addrinfo
- #ipv6_pktinfo — Socket::AncillaryData
- #ipv6_pktinfo_addr — Socket::AncillaryData
- #ipv6_pktinfo_ifindex — Socket::AncillaryData
- #ipv6_sitelocal? — Addrinfo
- #ipv6_to_ipv4 — Addrinfo
- #ipv6_unique_local? — Addrinfo
- #ipv6_unspecified? — Addrinfo
- #ipv6_v4compat? — Addrinfo
- #ipv6_v4mapped? — Addrinfo
- #ipv6only! — Socket
- #level — Socket::AncillaryData
- #level — Socket::Option
- #linger — Socket::Option
- #listen — Socket
- #listen — Addrinfo
- #listen — TCPServer
- #listen — UNIXServer
- #local_address — BasicSocket
- #name — Socket::Ifaddr
- #netmask — Socket::Ifaddr
- #notifier — Socket::HostnameResolutionResult
- #optname — Socket::Option
- #path — UNIXSocket
- #peeraddr — IPSocket
- #peeraddr — UNIXSocket
- #pfamily — Addrinfo
- #protocol — Addrinfo
- #recv — BasicSocket
- #recv_io — UNIXSocket
- #recv_nonblock — BasicSocket
- #recvfrom — Socket
- #recvfrom — IPSocket
- #recvfrom — UNIXSocket
- #recvfrom_nonblock — Socket
- #recvfrom_nonblock — UDPSocket
- #recvmsg — BasicSocket
- #recvmsg_nonblock — BasicSocket
- #remote_address — BasicSocket
- #reply — Socket::UDPSource
- #resolved? — Socket::HostnameResolutionStore
- #resolved_all_families? — Socket::HostnameResolutionStore
- #resolved_successfully? — Socket::HostnameResolutionStore
- #reverse_each_name — Object
- #reverse_each_name_with_prefix_optional — Object
- #send — BasicSocket
- #send — UDPSocket
- #send_io — UNIXSocket
- #sendmsg — BasicSocket
- #sendmsg_nonblock — BasicSocket
- #setsockopt — BasicSocket
- #shutdown — BasicSocket
- #socktype — Addrinfo
- #sysaccept — Socket
- #sysaccept — TCPServer
- #sysaccept — UNIXServer
- #timestamp — Socket::AncillaryData
- #to_s — Addrinfo
- #to_s — Socket::Option
- #to_sockaddr — Addrinfo
- #type — Socket::AncillaryData
- #unix? — Addrinfo
- #unix_path — Addrinfo
- #unix_rights — Socket::AncillaryData
- #unpack — Socket::Option
- #vhid — Socket::Ifaddr