Category : udp

UDP sockets have a ‘connect’ call, but do not have an ‘accept’ call for server applications. There are socket APIs that benefit performance-wise from a connected UDP socket (e.g. recvmmsg/sendmmsg) and is the best performing system call for a single-flow with very high packet rates (any thing higher requires kernel-bypass like DPDK). Anyhow, I am ..

Read more

I wrote an C++ Windows application to send datagrams. Transferring datagrams are via LAN works as it should. When I switch to WLAN, no datagrams are transferred. My understanding is, that the Windows is handling the data transmission, dependent on which connection is established. -> WiFi oder Cable. My socket configuration is: WSAStartup(MAKEWORD(2, 2), &m_wsaData); ..

Read more

Premise of this question is that I don’t have much knowledge on networking. I have an external cots application that works with UDP datagrams. It is able to send and receive them and I am able to set in a configuration file the current parameters for communication with other applications: UDP Connection Info: Connection Name ..

Read more

I have a UDP socket in C# that sends a message using the following code newsock.Send(sendBuffer, sendBuffer.Length, sender); where sendBuffer is a byte[] data type. How can I convert this message when I receive it in a UDP socket written in C++? The C++ code is the following: recvfrom(socket_desc, client_message, sizeof(client_message), 0,(struct sockaddr*)&client_addr, &client_struct_length) Source: ..

Read more