class TCPSocket

Overview

A Transmission Control Protocol (TCP/IP) socket.

NOTE To use TCPSocket, you must explicitly import it with require "socket"

Usage example:

require "socket"

client = TCPSocket.new("localhost", 1234)
client << "message\n"
response = client.gets
client.close

Defined in:

woozy.cr

Instance Method Summary

Instance Method Detail

def send(packet : Woozy::Packet::Packets) #

[View source]