module Socket
Overview
The Socket module provides classes for interacting with network sockets.
Protocol implementations:
TCPSocket- TCP/IP network socketTCPServer- TCP/IP network socket serverUDPSocket- UDP network socketUNIXSocket- Unix socketUNIXServer- Unix socket serverSocket::Raw- bare OS socket implementation for low level control
Defined in:
socket.crsocket/common.cr
socket/address.cr
socket/addrinfo.cr
socket/server.cr
socket/delegates.cr
Constant Summary
-
SOMAXCONN =
128
Class Method Summary
-
.ip?(string : String)
Returns
trueif the string represents a valid IPv4 or IPv6 address.
Class Method Detail
Returns true if the string represents a valid IPv4 or IPv6 address.