Questions tagged [UDP] (99)

1
answer

How to get ip addresses of all running servers on UDP?

Deal with winsock and UDP. Write on one PC, no LAN. On the client send a broadcast request: sockaddr_in broadcast; // enable broadcasts int enableBroadcast = 1; setsockopt(ClientSocket, SOL_SOCKET, SO_BROADCAST, (char*)&enableBroadcast, sizeof(enableBroadcast)); broadcast.sin_family was = AF_INET; broadcast.sin_port =...
Julia42 asked April 19th 20 at 12:41
1
answer

As on the client using a broadcast request to find the server (Winsock)?

There is a server on the PC, then start the client (All UDP). How to make a network broadcast to find the server to get its ip (well, there is 127.0.0.1 and in any case I think) and the port to fill the structure : RecvAddr.sin_family was = AF_INET; RecvAddr.sin_port = htons(Port); RecvAddr.sin_addr.s_addr = inet_addr("127....
Madeline_Rosenba asked April 19th 20 at 12:19
0
answer

Attack on UDP game server 77 thousand packets per second, how to hit?

Game server under UDP attack, sitting on OVH can't do anything about a month and a half break, the defence is not working. I think to go on anti-DDoS hosting, on their own is it possible to ban bots data? Video of the attack https://youtu.be/mam__icVI0s https://youtu.be/BOGgVj_l9Y4
Kiana asked April 19th 20 at 12:09
2
answers

How to solve the problem with receiving messages from the client to winsock using UDP?

Deal with winsock, particularly with udp. When making/waiting for messages out even though the code is almost all from the microsoft documentation. recvfrom gives an error with code 10057. Like it is connected with the socket, although the socket and bind are successful. Server code: #include <iostream> #pragma commen...
foster asked April 19th 20 at 12:05
0
answer

How to determine session UDP connections?

Listening to the messages from udp socket,I would like to determine where you get the packages and spread out the sessions to get a more detailed report of the sent data, I made just on the forehead, search the session entry in its channel, I would like to know is there any more elegant methods ? func serve(ctx context.Cont...
jaylen.Kie asked April 16th 20 at 10:44
1
answer

Problems with SIP phone?

Good day! The problem occurs with an IP phone: the phone is connected to a network, assigned a static Ip address, is powered using PoE. Once all set, everything runs like clockwork. The fact that after some undefined time the phone loses the network, although they were included (that is, power available for PoE is), not pre...
Alvera84 asked April 8th 20 at 18:01
1
answer

What are the alternatives to ssh (udp)?

Hi all! Need an alternative to ssh which was working on udp
osbaldo_Kassulke asked April 8th 20 at 10:16
3
answers

How to receive and parse UDP QByteArray in a structure of bit fields?

There are 2 bit fields are combined into one structure. Previously, when the total structure size allowed, did the Union via union in a uint64. Now the size of the structures was more give in the QByteArray from the server to the client and now there is a problem with the reception and analysis. How do normal people? you c...
Margarett.Sporer asked April 7th 20 at 09:34
1
answer

With the help of some technology, you can write tcp/udp for macos and ios?

You need to write tcp/udp server-client for macos and ios, with the help of some tools you can implement it? would be cool if more references, and video tutorials will be found on this topic)
jace.Gulgowski30 asked April 3rd 20 at 23:42
1
answer

Transfer large file through a UDP parts?

You need to send the saved web page to the client: Try to split and upload the file in parts: Server:private static void SendFile() { // Create a file stream and translate it into bytes Byte[] bytes = new Byte[UdpFileServer.fs.Length]; Console.WriteLine("Sending file size" + UdpFileServer.fs.Length + "bytes"); UdpFil...
lorenz.Adams asked April 3rd 20 at 18:06