Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

loss in udp

Name: Anonymous 2008-07-19 19:32

I need to send some data over UDP (cant use TCP), and i want to make sure that the data gets there. I thought that sending som data to the other host, and then that host sends a reply back saying HEY I GOT IT, but then theres a chance that HEY I GOT IT is dropped too..

is there any way i can make sure that the receiver gets it??

Name: Anonymous 2008-07-19 19:37

Use TCP.

Name: Anonymous 2008-07-19 19:40

lol wut

Timeout for the reply

Name: Anonymous 2008-07-19 19:49

You need TCP/UDP/IP.

http://www.csm.ornl.gov/~dunigan/net100/atou.html
http://thebends.org/~allen/utunnel/
http://www.jankratochvil.net/project/tcpoverudp/

Or maybe you can use an alternative to TCP and UDP like SCTP.

Or maybe you should just fucking use TCP/IP. Your reasons for not using it are irrelevant.

Name: Anonymous 2008-07-19 19:53

>>1
is there any way i can make sure that the receiver gets it??
No.
http://en.wikipedia.org/wiki/Two_Generals%27_Problem

Name: Anonymous 2008-07-19 20:23

>>5
Thanks, this was really helpful

>>4
I would do this but, I'm running low on memory as it is.

Name: Anonymous 2008-07-19 20:35

>>5
Maybe it isn't in the spirit of the problem, but why not just incorporate the use fireworks? Only the first message needs to be hidden. The enemy can see the confirmation message because they don't know what the confirmation means. —Preceding unsigned comment added by 80.203.36.250 (talk) 21:52, 13 September 2007 (UTC)

Name: Anonymous 2008-07-19 20:50

>>6
Switch to something like uIP then.

Name: Anonymous 2008-07-19 20:52

Not the OP, but I have a similar problem related to UDP. It's more of a simple question. I'm using UDP as a crude means of inter-process communication between processes (local UDP socket.) I won't suffer the unreliability problems over localhost, will I?

Name: Anonymous 2008-07-19 21:05

>>9
Why don't you just use UNIX domain sockets?

Name: Anonymous 2008-07-19 21:32

>>10
I'm using Windows XP.

Name: Anonymous 2008-07-19 21:34

>>11
Now you have two problems.

Name: Anonymous 2008-07-19 21:39

>>11
use W32 domain sockets

Name: Anonymous 2008-07-19 21:41

>>11
Named shared memory is easy to use, and there's good examples on how to set it up.

Name: Anonymous 2008-07-19 22:02

>>14
THE SUSSMAN LOOKS DOWN UPON YOU

Name: Anonymous 2008-07-19 22:11

>>15
Fuck the Sussman. Shared memory is a lot faster too.

Name: Anonymous 2008-07-19 23:42

>>14
I would like to keep things simple, as the idea is that I would like my data to be available to scripting languages with basic socket libraries. Would there be any advantages of using named shared memory over local sockets?

Name: Anonymous 2008-07-20 2:28

My suggestion:

Party A sends party B a message with a random, unique ID with UDP. If party B receives the message, then party B sends an "I got it" message to party A with the same unique ID.

If party A's message fails, then party B will never send a response; after a timeout period, party A will send the message again until it receives a response.

If party B receives the same message from party A multiple times (because party B's responses to party A have repeatedly failed,) then party B will simply keep sending the same response.

Name: Anonymous 2008-07-20 5:14

>>18
In other words, implement rudimentary link-status in UDP. You'd be better off with TCP imo.

Name: Anonymous 2008-07-20 7:46

>>17
In that case shared memory is probably not right for you. But in general, shared memory is a lot simpler as it's just reading an array (or whatever you decide to treat the memory as.)

Name: Anonymous 2008-07-29 2:18

>>11
Named pipes.

Name: Anonymous 2008-07-29 13:39

Name: Anonymous 2008-07-29 14:38

>>21
Nipples.

Name: Anonymous 2008-07-29 14:47

There's no reason you can't use TCP. You're just being a retard.

Name: Anonymous 2008-07-29 21:36

>>22
They're all faggots that need to learn encryption already - then they can communicate with smoke signals in the clear and it will be too late for the city by the time the defenders even get it decoded to the cipher text.

Name: Anonymous 2008-07-30 9:59

>>1
I need to send some data over UDP (cant use TCP), and i want
to make sure that the data gets there. I thought that sending
som data to the other host, and then that host sends a reply
back saying HEY I GOT IT, but then theres a chance that
HEY I GOT IT is dropped too..

You seem to be reinventing TCP exactly

Name: Anonymous 2008-07-30 16:08

>>26
LOL

Name: Anonymous 2008-07-30 16:20

>>26
I need to send some data over UDP (cant use TCP), and i want
to make sure that the data gets there. I thought that sending
som data to the other host, and then that host sends a reply
back saying HEY I GOT IT, but then theres a chance that
HEY I GOT IT is dropped too..

Name: Anonymous 2008-07-30 16:34

>>28
phayl

Name: Anonymous 2008-07-30 16:41

Ooo dooo pooo

Name: Anonymous 2008-07-30 16:43

>>28
fAiLlLlLlLlLlL

Name: Anonymous 2008-07-30 17:11

>>31
Does it look like /b/ to you here? Do you see a large banner saying ``/b/'' at the top? DO YOU FUCKING UNDERSTAND THAT YOU'RE AT /prog/ AND HERE PEOPLE MAKE ASSES OF THEMSELVES NOT BY SAYING ``FAIL'', BUT BY SOME OTHER MEANS?

Get the fuck out, back to /b/, please.

Name: Anonymous 2008-07-30 18:08

delayclosed.jpg

Name: Anonymous 2008-07-30 18:15

>>31
>>33
back to /b/, please

Name: Anonymous 2008-07-30 18:16

delayclosed.jpg

Name: Anonymous 2008-07-30 18:16

delayclosed.jpg

Name: Anonymous 2008-07-30 18:17

delayclosed.jpg

Name: Anonymous 2008-07-30 18:17

delayclosed.jpg

Name: Anonymous 2008-07-30 18:17

delayclosed.jpg

Name: Anonymous 2008-07-30 18:17

delayclosed.jpg

Name: Anonymous 2008-07-30 18:17

delayclosed.jpg

Name: Anonymous 2008-07-30 18:21

I drink all day, I smoke all day, I've done it all but tap the vein.

Name: Anonymous 2009-03-06 12:48


same as who in their right mind   would do such   tasks in the   cellar as a   foundation for C   When we pass   c to car   and cdr these   call dispatch with   a 0 or   50 000 or   50 000 or   50 000 or   50 000 or   50 000 or   50 000 or   50 000 or   50 000 or.

Name: Anonymous 2011-01-31 21:19

<-- check em dubz

Name: Anonymous 2011-02-03 4:15

Don't change these.
Name: Email:
Entire Thread Thread List