Need reliable datagrams
John P. Nelson
jpn at teddy.UUCP
Wed Sep 17 03:18:36 AEST 1986
I have an application that needs to reliably send packets of data
around among several tasks in a system.
I have tried using bidirectional SOCK_STREAM type sockets, but that
serializes my data (it removes the packet boundaries) and, besides, I
run out of descriptors because each socket must be CONNECTed to another
socket on the other end (and each task needs two channels, one for
normal data, and one for breakthru data).
I have also tried using SOCK_DGRAM sockets: The interface is fine,
but under high load conditions, I lose as many as 20% of my packets!!
My SUN manual lists a SOCK_SEQPACKET protocol as being "planned but
not implemented"; this looks like just what I need. Too bad.
Has anyone solved this problem? If I can't get a good UNIX solution,
I'll have to implement my own reliable delivery protocol at task level
(I'm not much of a kernel hacker) - and I'd really HATE to have to do that!
We have all kinds of source licences here: BSD4.2, BSD4.3, ULTRIX 1.2,
and SUN 3.0. Any kind of pointers would be appreciated.
John P. Nelson
GenRad M.S. 6
Concord, MA 01742
decvax!genrad!teddy!jpn
seismo!talcott!panda!teddy!jpn
More information about the Comp.unix.wizards
mailing list