目录 - socket: Ruby 标准库文档
类和模块
- Addrinfo
- BasicSocket
- IPSocket
- Object
- SOCKSSocket
- Socket
- Socket::AncillaryData
- Socket::Constants
- Socket::Ifaddr
- Socket::Option
- Socket::ResolutionError
- Socket::UDPSource
- SocketError
- TCPServer
- TCPSocket
- UDPSocket
- UNIXServer
- UNIXSocket
方法
- ::accept_loop — Socket
- ::bool — Socket::Option
- ::byte — Socket::Option
- ::do_not_reverse_lookup — BasicSocket
- ::do_not_reverse_lookup= — BasicSocket
- ::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_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::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
- ::sockaddr_in — Socket
- ::sockaddr_un — Socket
- ::socketpair — Socket
- ::socketpair — UNIXSocket
- ::tcp — Socket
- ::tcp — Addrinfo
- ::tcp_server_loop — Socket
- ::tcp_server_sockets — 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
- #addr — Socket::Ifaddr
- #addr — IPSocket
- #addr — UNIXSocket
- #afamily — Addrinfo
- #bind — Socket
- #bind — Addrinfo
- #bind — UDPSocket
- #bool — Socket::Option
- #broadaddr — Socket::Ifaddr
- #byte — Socket::Option
- #c_str — Object
- #canonname — Addrinfo
- #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
- #error_code — Socket::ResolutionError
- #family — Socket::AncillaryData
- #family — Socket::Option
- #family_addrinfo — Addrinfo
- #flags — Socket::Ifaddr
- #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
- #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
- #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