]> rtime.felk.cvut.cz Git - frescor/forb.git/commit
Make proto_inet usable also as local protocol
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 10 May 2009 21:14:55 +0000 (23:14 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 24 May 2009 22:20:06 +0000 (00:20 +0200)
commit0b79d55fff90ed4d0a48bbb97c9c3f787e575f41
treeb6f6097632e6388d87b1d96a2e202619102d7fc8
parent3fc5635bfd8fa6a03aa2f38bb69d2465f31f0e24
Make proto_inet usable also as local protocol

Now inet protocol's TCP socket does not listen on a specific port so
that multiple applications on a single node can communicate using this
protocol.

UDP socket listens on a fixed port and since SO_REUSEADDR is enabled,
multiple applications can receive the same content.
src/Makefile.omk
src/forb.c
src/proto_inet.c
src/tests/Makefile.omk
src/tests/discovery.c
src/tests/test_proto_inet.c