Module: Revactor::TCP
The TCP module holds all Revactor functionality related to the Transmission Control Protocol, including drop-in replacements for Ruby TCP Sockets which can operate concurrently using Actors.
Child modules and classes
Class Revactor::TCP::ConnectError
Class Revactor::TCP::Listener
Class Revactor::TCP::ResolveError
Class Revactor::TCP::Socket
Constants
| Name | Value |
|---|---|
| CONNECT_TIMEOUT | 10 |
Public Class Methods
connect (host, port, options = {})
Connect to the specified host and port. Host may be a domain name or IP address. Accepts the following options:
:active - Controls how data is read from the socket. See the
documentation for Revactor::TCP::Socket#active=
listen (addr, port, options = {})
Listen on the specified address and port. Accepts the following options:
:active - Default active setting for new connections. See the
documentation Rev::TCP::Socket#active= for more info
:controller - The controlling actor, default Actor.current