Closed webconnme closed 8 years ago
Added an argument on reactor handler function.
AS IS:
var global_socket * zmq.Socket func socket_handler (state zmq.State) { if state == zmq.POLLIN { str := global_sock.recv(0) fmt.Println("Recevied: " + str) } }
TO BE:
func socket_handler (sock *zmq.Socket, state zmq.State) { if state == zmq.POLLIN { str := sock.recv(0) fmt.Println("Recevied: " + str) } }
This is unnecessary and would break existing code.
See examples/clonesrv5.go, examples/lbbroker3.go, and examples/bstar/bstar.go for usage examples.
examples/clonesrv5.go
examples/lbbroker3.go
examples/bstar/bstar.go
Added an argument on reactor handler function.
AS IS:
TO BE: