I know that with TCP every connection creates a new socket. Does UDP also create a new socket for each connection?
No.
When you receive a message ( recvmsg()), you are informed of the IP address of the partner who sent the message; when you reply ( sendmsg()), you indicate the IP address the message goes to. This is done through one socket. See also <sys/socket.h>.
recvmsg()
sendmsg()
<sys/socket.h>
I know that with TCP every connection creates a new socket.
You have it back. Each new socket represents a new connection.
Does UDP create a new socket for each connection?
. -, UDP . -, . UDP. TCP.
Source: https://habr.com/ru/post/1772972/More articles:OpenGL-ES, iPhone and intermittent error: GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES (0x8CD6) - iphoneCan I use web browsing for charitable donations in the iOS app? - objective-cAssembling memory with multiple arrays - assemblyIs there a replacement for Rails 3 for subclasses? - activerecordConstants and maintainability - design-patternsJSF2 application and Richfaces 3.3.3 for Tomcat 6.0 crash StackOverflowError - tomcat6https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1772974/how-do-i-add-widgets-to-a-file-dialog-in-wxpython&usg=ALkJrhijqwB1avbYNTam28ao0YZ713omhgUIViewController Interface Orientation is always the same value - uiviewcontrollerhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1772976/how-can-i-compare-two-images-to-detect-duplicates-and-cropped-duplicates&usg=ALkJrhhGVv16E55zf5sDldEBEpkcdtPZrQStrcat throws a segmentation error when simply entering a password like getch - cAll Articles