udp

RTP Packet maximum size?

半腔热情 提交于 2021-02-09 11:13:41
问题 Im trying to figure out which is the maximum size of a RTP packet. I know that the minimum header size is 12 bytes, but i dont find anything about the payload. It is possible that the maximum size of the RTP packet is the same as the UDP payload maximum size? I mean, that i have only a RTP packet with a huge payload. Is this possible and, in this case, there is any recommended size for the RTP packet for not doing this? For example im encapsulating MP3 frames in RTP. Do I make an RTP frame

RTP Packet maximum size?

只愿长相守 提交于 2021-02-09 11:13:22
问题 Im trying to figure out which is the maximum size of a RTP packet. I know that the minimum header size is 12 bytes, but i dont find anything about the payload. It is possible that the maximum size of the RTP packet is the same as the UDP payload maximum size? I mean, that i have only a RTP packet with a huge payload. Is this possible and, in this case, there is any recommended size for the RTP packet for not doing this? For example im encapsulating MP3 frames in RTP. Do I make an RTP frame

RTP Packet maximum size?

拥有回忆 提交于 2021-02-09 11:12:18
问题 Im trying to figure out which is the maximum size of a RTP packet. I know that the minimum header size is 12 bytes, but i dont find anything about the payload. It is possible that the maximum size of the RTP packet is the same as the UDP payload maximum size? I mean, that i have only a RTP packet with a huge payload. Is this possible and, in this case, there is any recommended size for the RTP packet for not doing this? For example im encapsulating MP3 frames in RTP. Do I make an RTP frame

Sending a UDP packet with source port, but without binding

北城以北 提交于 2021-02-09 07:32:08
问题 I would like to send a UDP packet in Python and specify the source port but WITHOUT binding. An equivalent with hping3: hping3 -s $sourceport -p $remoteport --udp --file message.bin -d 1024 -c 1 $remoteaddr I have tried to do something like this: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.bind((SHOST, SPORT)) But of course, Python tries to bind, and it does not work. Now if I don't bind, I can do: s =

Sending a UDP packet with source port, but without binding

你说的曾经没有我的故事 提交于 2021-02-09 07:31:55
问题 I would like to send a UDP packet in Python and specify the source port but WITHOUT binding. An equivalent with hping3: hping3 -s $sourceport -p $remoteport --udp --file message.bin -d 1024 -c 1 $remoteaddr I have tried to do something like this: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.bind((SHOST, SPORT)) But of course, Python tries to bind, and it does not work. Now if I don't bind, I can do: s =

Nullpointer exception when trying to receive UDP multicast

只愿长相守 提交于 2021-02-09 07:01:38
问题 i'm puzzeled after a few attempts to get a simple UDP multicast receiver working. After my own code did not work as expected i tried out the exact example posted in the vertx documentation: DatagramSocket socket = vertx.createDatagramSocket(new DatagramSocketOptions()); socket.listen(1234, "0.0.0.0", asyncResult -> { if (asyncResult.succeeded()) { socket.handler(packet -> { // Do something with the packet }); // join the multicast group socket.listenMulticastGroup("230.0.0.1", asyncResult2 ->

UDP non-blocking socket on a real-time OS: sendto() and recvfrom() can return with partial message?

百般思念 提交于 2021-02-08 04:38:47
问题 This is my first message here. I'm working with a non-blocking UDP socket on a real-time OS (OnTime and VxWorks). I have read the documentation and some forums but I have some doubts about 'atomicity' of sendto() and recvfrom() functions: sendto() returns the number of bytes enqueued or error. Is it possible that it's less then the input buffer length? Maybe the output buffer has not enough free space and just few bytes are enqueued... recvfrom() returns the number of byte received or error.

unix socket error 14: EFAULT (bad address)

 ̄綄美尐妖づ 提交于 2021-02-07 11:17:48
问题 I have a very simple question, but I have not managed to find any answers to it all weekend. I am using the sendto() function and it is returning error code 14: EFAULT. The man pages describe it as: "An invalid user space address was specified for an argument." I was convinced that this was talking about the IP address I was specifying, but now I suspect it may be the memory address of the message buffer that it is referring to - I can't find any clarification on this anywhere, can anyone

Sending UDP messages works, receiving not - C# on Unity3d

我只是一个虾纸丫 提交于 2021-02-07 10:53:50
问题 Hello, I am trying to set up a UDP connection in Unity3d and it has been giving me some headace the past days: The Unity script I am running is supposed to receive and maybe in the future send UDP messages. Next to Unity I am using Wireshark to track the packets and PacketSender to generate and receive UDP messages. The source of the messages is a PLC which sends a package every second, containing two floats (8 bytes) for testing. The PLC IP is 192.168.0.1 and it is connected directly via

Sending CAN frame via UDP in Python

 ̄綄美尐妖づ 提交于 2021-02-05 08:46:07
问题 I made UDP socket connection between two Linux machines and can send for example b"Hello, World!" easily. But now I need to send the below CAN frame from can import Message send_msg = Message(data=[1, 2, 3, 4, 5]) So if I print send_msg it shows: Timestamp: 0.000000 ID: 00000000 X DLC: 5 01 02 03 04 05 I want to get this printed on the receiving end. The sending and receiving end codes I am using are below: Sending: import socket UDP_IP = "10.140.189.249" UDP_PORT = 5005 from can import