Here is my code which works when I send to localhost as shown below, however if I change the ip adress to a second computer who is on the same network it returns Invalid Argument. I built a similar program in python to check the connection between the two computers worked and it worked fine. ..
I am able to send messages between the two computers via python, but when I try to do so in C++ I can only send it to localhost. If I put the ip adress of the second computer the sendto function returns -1. const int output_buffer_length = 54; uint8_t output_buffer[output_buffer_length]; rec_address.sin_family = AF_INET; rec_address.sin_addr.s_addr = ..
I want to send a datagram UDP message via sendto with 4-byte address, 1 short int number, and 4 bytes int distance. So it should be exactly 9-bytes. How can i do it? I already have tried to convert those values and put them in buffer, but it didn’t work. sendto(sockfd, &message, sizeof(message), 0, (struct ..
I am trying to send raw bits from a boost::dynamic_bitset with the Winsock2 sendto function. MS documentation shows that sendto uses const char * type for the buffer parameter. How do I send only the raw bits stored in the dynamic_bitset? I don’t know how to cast or manipulate the dynamic_bitset so that it can ..
I would like to create a simple script containing : "C:UsersProfessionalNVEncC_5.24_x64NVEncC64.exe" –codec h265 –preset quality –profile main10 –tier high -i "Project.mkv" -o "Project-Q27.mkv" that i can reach by Right Click => SendTo. I Understand that i need to name the file XXX.bat and paste it in SendTo folder. But i don’t know how to get ..