[Development] Multiclient UDP server

2017-08-18 Thread Thiago Macieira
Related to the DTLS discussion, but I'll try to keep this free from crypto for now. The question is how to write a multi-client server operating on UDP, not TCP. It would be nice to understand SCTP case too (and maybe DCCP in the future). On TCP, this is easy: 1) you create a socket, bind it an

Re: [Development] Multiclient UDP server

2017-08-23 Thread Samuel Stirtzel via Development
2017-08-18 22:37 GMT+02:00 Thiago Macieira : > Related to the DTLS discussion, but I'll try to keep this free from crypto for > now. > > The question is how to write a multi-client server operating on UDP, not TCP. > It would be nice to understand SCTP case too (and maybe DCCP in the future). Hi T

Re: [Development] Multiclient UDP server

2017-08-23 Thread Thiago Macieira
On Wednesday, 23 August 2017 02:32:11 PDT Samuel Stirtzel via Development wrote: > Yes connect()ing the new socket is the only sane way. > The old socket could recvfrom() the data and forward it until the new > socket takes over. > > There still will be a time window where a race condition could