udp

Video stream over ethernet

Hi, I have several video servers connected to each other over 1Giga bit ethernet cable. Video clips can be send from one server to another or live broadcasting. What best protocol should I use (UDP, TCP...) to achive real time transfering of HD video frames? ...

Real Life (yet simple enough for a beginer) Example of TCP and/or UDP Sockets

I have been attempting to learn tcp/udp for so long now, I am on the brink of giving up completely and never attempting it again, I have read every tutorial there is but can never get anything to work. Tutorials either stop once they tell me how to connect and dont explain how it can be used or do not provide enough source code. Is there...

.NET UDP & DTLS

Is there a native way to provide DTLS support for UDP sockets in .NET? edit by native I mean those that are in .NET framework out-of-the-box. ...

Discover a TCP/IP Socket?

I am using Objective-C and Java for this, but I think the question is language-neutral. I have an iOS client that talks to a Java server over TCP/IP. Right now I need to tell at least one of the parties the IP address of the other. Is there a standard way that I can "discover" IP addresses (from one side or the other)? Also, how would...

UDP how can two computers that are on separate networks connect to each other?

Hey guys I had some questions about udp networking. First of all how can two computers that are on separate networks connect to each other? I know that you can do this with port forwarding but I know things like xbox live don't work through that. How is this possible and is there a way to obtain an address to another computer on a separa...

c# udpclient response cut short

When I use netcat to send a udp query I get a full response. When I use UDPCLIENT class in c#, i dont receieve the full response, it is cut short. Here is my code byte[] data = new byte[1024]; string stringData; UdpClient server = new UdpClient(currentIP, currentport); IPEndPoint send = new IPEndPo...

C#: UDP Socket - Receive data with unknown size

Hi, i use a UDP-socket for sending/receiving objects. I serialize the objects into a byte array send it and receive it with a client. But before i can receive i have to allocate a byte array. I must do it before and then handle the Socket.Receive()-methode the array. But my objects have a variable length. How can i discover the array-si...

iptables flush issue

I am using iptables to change the ip address of a snmptrap packet so it looks like it came from different device. I wrote a PERL script that I pass flags to and it sends the simulated traps but I ran into a issue when trying to send a trap for one IP and then immediately trying to send another trap for a different IP. If I don't wait 3...

UDP IP Fragmentation and MTU

I'm trying to understand some behavior I'm seeing in the context of sending UDP packets. I have two little Java programs: one that transmits UDP packets, and the other that receives them. I'm running them locally on my network between two computers that are connected via a single switch. The MTU setting (reported by /sbin/ifconfig) is ...

Java DatagramSocket on Windows 7

Guys im having some trouble with some inconsistency of running a piece of code on Windows XP and Windows 7. Basically im trying to send a UDP packet by doing, DatagramSocket sendSocket = new DatagramSocket(); DatagramPacket dummyPacket = new DatagramPacket(new byte[ 1 ], 1, configuration.remoteAddress, DUMMY_PORT); try { ...

Monitoring packets going in and out of an application

I'm building a VoIP application using the TeamSpeak 3 SDK. Is there any way to view the UDP packets going in and out of the server/client applications? ...

raw socket sendto failed using C on Linux

I'm trying to send a raw packet using UDP, with the IP and UDP headers that I have constructed in my code. Raw packet successfully initialized with socket(PF_INET, SOCK_RAW, IPPROTO_UDP) and socket option set using setsockopt(sd, IPPROTO_IP, IP_HDRINCL, val, sizeof(int)). The problem is when I send the packet using sendto(), I get the e...

how can I find the remote address of a continuous UDP stream

For those of you who play MW2 on the PC you know it is plagued by hackers and cheaters. I would like to create a solution where the host of a multi player game can selectively firewall out a cheater. The problem I am running into is I do not know how to locate remote IPs that are sending or receiving UDP packets. Netstat will only show ...

Using iPhone as a TCP and UDP server - open ports?

Hey, I need to send and get packeges via UDP and TCP in iPhones and the server. But, I figured that if I wanna send pacgages to a client (iPhone), he is... A kinda server. So, let's say I'm sending and getting packeges to iPhone via the port 2347. Do I need to open the port on the iPhone or something like that? Is there any Firewall buil...

c udp chat testing

I am writing a udp chat application in c. I need to test if messages are received in an incorrect order. CAn anyone please tell me of a tool I can use to delay certain messages? also please tell me how to use it? thank you very much in advance! also I am using ubuntu x86_64 and OSX 10.6.4. A tool in either OS will work ...

ensuring packet order in UDP

hey. im using 2 computers with an application to send and recieve udp datagrams. there is no flow control (ICMP disabled) frequently when i send a file as udp datagrams via the application, i get 2 packets changing their order and therefor - packetloss. is there a way to make sure winsock and send() will send the packets the same way th...

How do I send real-time data over UDP?

I have to send a sequence of video frames over UDP as fast and real-time as possible and while I got the basics working, I am running into all sorts of difficulties. Some of my goals: Data will normally be sent over dial-up (hence UDP instead of TCP), but also needs to support fast Ethernet. It's OK to occasionally drop frames (hence U...

What are common UDP usecases?

Can anyone tell be where to use the UDP protocol except live streaming of music/video? What are default usecases for UDP? ...

Android Broadcast UDP Looping

Hi all, I am currently sending out a DatagramPacket on a DatagramSocket and I receive just fine.. the problem is that I am receiving the packet I sent out. If I call the receive twice then it times out. Is there a way to ignore the first packet and receive the second. Here is my code.. socket = new DatagramSocket(8001); ...

VLC jpeg streaming.

Hello, I'm writing a application, which retrieve rtsp stream from camera then do multicast streaming, at one point I need jpeg streaming in case camera connection is unsuccesfull. My command line arguments is : CODE: SELECT ALL string[] args = new string[] { "-I", "dummy", "--ignore-config", ...