module

CryBase::Connectivity::TCPSocket

Class methods

open(host_port : String, config : SocketConfig = SocketConfig.new) : ::TCPSocket

Opens a plaintext TCP socket from a host:port string.

The value must look like 127.0.0.1:12345.

socket = CryBase::Connectivity::TCPSocket.open("127.0.0.1:12345")
socket.close
Source
open(host : String, port : Int32, config : SocketConfig = SocketConfig.new) : ::TCPSocket
Source