Method: Cod.tcp
- Defined in:
- lib/cod.rb
.tcp(destination, serializer = nil) ⇒ Cod::TcpClient
Creates a tcp connection to the destination and returns a channel for it.
87 88 89 90 91 |
# File 'lib/cod.rb', line 87 def tcp(destination, serializer=nil) Cod::TcpClient.new( destination, serializer || SimpleSerializer.new) end |