FAQ
The 'mbxchan' package provides an easy communication between distributed Go
applications using standard Go channels.

This functionality is implemented through named Mailboxes (MBX).
These Mailboxes provide unidirectional inter-process communication
(one-to-one,
many-to-one). Each Mailbox has a unique name.

In the following example we send "Hello" from one process to another:

Sending side:

     outch, err := mbxchan.MakeClientChan("mybox")
     outch <- []byte("Hello")
     ...
     mbxchan.CloseClientChan(outch)

Receiving side:

     inch, err := mbxchan.MakeServerChan("mybox", "HTTP");
     body, ok <- inch
     fmt.Printf("%s\n", string(body))
     ...
     mbxchan.CloseServerChan(inch)

The transport type is: "HTTP" | "TCP" | "UDP" | "WEBSOCKET"
Only "HTTP" is currently implemented.

The package could be found on: http://bitbucket.org/levarnon/mbx
See also 'mbxchan' link in http://code.google.com/p/go-wiki/wiki/Projects

Comments are welcome.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMay 15, '14 at 2:01p
activeMay 15, '14 at 2:01p
posts1
users1
websitegolang.org

1 user in discussion

Saba lev: 1 post

People

Translate

site design / logo © 2021 Grokbase