tcp

command
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

README

This example demonstrates how to use gotalk over raw TCP connections:

go build && ./tcp

Running this program outputs something like this:

server: listening at 127.0.0.1:1234
client: connected to 127.0.0.1:1234
client: sending 'msg' notification
client: sending 'msg' notification
client: sending 'greet' request
server: received notification: "msg" => "{\"Msg\":\"World\"}"
server: received notification: "msg" => "Hello"
server: sending 'ping' request
server: sending 'ping' request
server: handling 'greet' request: {Name:Rasmus}
client: handling 'ping' request: "abc"
client: handling 'ping' request: "abc"
client: greet: {Greeting:Hello Rasmus}
client: sending 'echo' request
server: ping: pong
server: ping: pong
server: handling 'echo' request: "abc"
client: echo: abc

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL