Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Does Datasocket us UDP or TCP packets?

0 views
Skip to first unread message

VI Guy

unread,
Apr 12, 2002, 10:05:09 AM4/12/02
to
Just need to know if the "lossy" mechanism used by Datasocket is UDP
packets (which aren't garanteed to get there) or if the "lossy"
mechanism is the possibility of new data overwriting older data (i.e.
non-buffered) using TCP packets (which are garanteed to get there).

Greg McKaskle

unread,
Apr 12, 2002, 10:23:35 AM4/12/02
to

Your questions are independent, I think. First off, datasocket doesn't
currently buffer values. Even if no packets were ever lost, reading
from a datasocket returns its current value. No queuing takes place,
and there may have been intermediate values arriving that you did not read.

And to answer the original question, I believe that it uses UDP.

Greg McKaskle

VI Guy

unread,
Apr 12, 2002, 11:05:10 AM4/12/02
to
How confident is your belief in it being UDP? I would just run a
little experiment with two computers and netstat, but alas I am not in
my usual enviornment and dont have that luxery (business trip).

Greg McKaskle

unread,
Apr 12, 2002, 6:04:25 PM4/12/02
to
> How confident is your belief in it being UDP? I would just run a
> little experiment with two computers and netstat, but alas I am not in
> my usual enviornment and dont have that luxery (business trip).
>


Actually, I wasn't that confident, and was in fact wrong. Here is the

scoop straight from the author.


dstp ( aka the data socket server) : tcp
logos: udp
opc: (varies on connection settings)

So typical datasocket connection uses tcp. Again, there is no queuing
though, and you are not guaranteed to read every point written, and in
many situations where the read is simply timed, you may also read the
same value multiple times.

Greg McKaskle

VI Guy

unread,
Apr 15, 2002, 12:41:33 PM4/15/02
to
I was finally able to run my experiment and poll the active ports with
netstat and discovered the same thing: datasocket uses TCP.

We were/are using a "handshaked/buffered" datasocket to stream some
data from a real time system to a datalogging PC. After a few minutes
the datalogging PC "hangs" on the datasocket (RT system is still
filling the buffer, but datalogging PC no longer receiving packets, DS
sever running on the datalogging PC). We were wondering if our
handshake signals were being lost (ala UTP packets disappearing into
the ether). Since thats not the case, we will investigate our
"packets too big" theory as it seems to coincide with our buffer
getting big (we flush and send the whole buffer each time the we get
an "ack" from the datalogging PC).

Thanks for your help, Greg.

0 new messages