Answer the question
In order to leave comments, you need to log in
Where can I find an example UDP server on asynchronous sockets?
I can't find a normal example of an asynchronous UDP server in C++ (or just C ). There are only TCP variants.
Libev \ LibEvent \ Libuv do not offer, should be done on *poll. I want then to transfer to support of ipv6 of a code.
Are there examples somewhere on how to implement such a server or what to read?
PS previously did asynchronous TCP on Libev
Answer the question
In order to leave comments, you need to log in
Book "TCP/IP Network Application Development" p.135 "Parallel Server Algorithm without Establishing a Logical Connection".
So, what is the fundamental difference with TCP then? It should be even easier there: no processing of connections, dropouts, streaming is needed. You send yourself stupid datagrams when the socket is free, and you accept it when the buffer is not empty, and you don’t take a steam bath.
And why don't you like libraries? In them, all the jambs and bugs have already been solved for you. And believe me, there are enough of them. Somewhere poll is stupid, somewhere there is no epoll, somewhere file IO is still normal. In Windows, in general, IOCP is used instead of all this, and that one through the ass.
And, isn't there an example in man epoll? At one time, I had enough of it, as far as I remember.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question