udp

Error Rate in TCP checksum?

TCP and UDP(sometimes) use a simple checksum to make sure the contents are correct. What I want to know is any empirical data or estimate, of how often a packet is corrupted, but has the correct checksum for a person with a standard computer and internet connection. Now I know that this probably all varies widely with ISP quality, har...

Is it possible to use UDP in Flash/ActionScript?

Quick question: is there possibility to do UDP datagram sockets in Flash/ActionScript? ...

Understanding kernel assigned local addresses on a udp socket

Hi! i'm developing a java application using the jstun library (hxxp://jstun.javawi.de/), and i need to compare my public ip with the one chosen by the kernel (wildcard address - hxxp://java.sun.com/j2se/1.5.0/docs/api/java/net/DatagramSocket.html#DatagramSocket() ) when i create a udp socket. what i don't understand is, if my local ip ...

Disconnect and Reconnect a connected datagram socket

Iam trying to create an iterative server based on datagram sockets (UDP). It calls connect to the first client which it gets from the first recvfrom() call (yes I know this is no real connect). After having served this client, I disconnect the UDP socket (calling connect with AF_UNSPEC) Then I call recvfrom() to get the first packet fro...

is ipv6 backward compatable with ipv4?

I've got a little udp example program written using ipv4. If I alter the code to ipv6 would I still be able to communicate with anyone using the listener with an ipv4 address? I was looking at porting examples at http://ou800doc.caldera.com/en/SDK_netapi/sockC.PortIPv4appIPv6.html I'm not sure if simply altering the code would ensure ...

sequence ID for handling reliability

I'm trying to figure out a simple way to handle reliability for UDP messages. I figured I would just send each one with a sequencing ID and by comparing the ID to the one previously received, a loss can be detected. I would normally just use integers however the idea that it would just keep incrementing indefinitely did not sit right wit...

What libraries are available for Java that parse IP header bytes?

On my project, we have been writing our own IP header parsing code for some time now. I'm starting to wonder if our time could be spent better elsewhere. A google search has not yielded much of use. Basically, what I am looking for is a third party library that will be able to parse out all of the meaningful information out of a IP pack...

Monitor UDP packet loss in Windows Server, Java

My Java application receives data through UDP. It uses the data for an online data mining task. This means that it is not critical to receive each and every packet, which is what makes the choice of UDP reasonable on the first place. Also, the data is transferred over LAN, so the physical network should be reasonably reliable. Anyway, I ...

How to set the don't fragment (DF) flag on a socket?

I am trying to set the DF (don't fragment flag) for sending packets using UDP. Looking at the Richard Steven's book Volume 1 Unix Network Programming; The Sockets Networking API, I am unable to find how to set this. I suspect that I would do it with setsockopt() but can't find it in the table on page 193. Please suggest how this is do...

Erlang: how to set or check TTL in UDP packets?

In Erlang, how can I: Set the TTL for sent UDP packets? Retrieve the value of the TTL for received UDP packets? I need to do this to implement GTSM ...

How can I access a IPTV server programatically?

My University is currently running an IPTV trial. To access the service, you are asked to install VLC Media Player, and run the files, downloaded from the University's intranet, each representing a channel, through it. The files are of the format: #EXTM3U #EXTINF:0,ITV2 udp://@238.255.0.6:2001 Which I recognise as an M3U playlist fil...

Why is my UDPClient null once in a while

Can someone explain to me why this code fails once in a while with a null exception for udpLink while sending? udpLink = new UdpClient(ipAddress, 514); using (udpLink) { udpLink.Send(rawMsg, rawMsg.Length); } This is the new code on how I fixed it. udpLink ...

Java IOException: No buffer space available while sending UDP packets on Linux

I have a third party component which tries to send too many UDP messages to too many separate addresses in a certain situation. This is a burst which happens when the software is started and the situation is temporary. I'm actually not sure is it the plain amount of the messages or the fact that each of them go to a separate IP address. ...

Emulating accept() for UDP (timing-issue in setting up demultiplexed UDP sockets).

For an UDP server architecture that will have long-lived connections, one architecture is to have one socket that listens to all incoming UDP traffic, and then create separate sockets for each connection using connect() to set the remote address. My question is whether it is possible to do this atomically similar to what accept() does f...

Is there a way to specify the source UDP port using PHP?

I need to send a message via UDP to a remote equipment. I know that if I use the same UDP port that it used while sending information to the server to write back to it the messages goes through. I am currently using: $fp = fsockopen( $destination, $port, $errno, $errstr); if (!$fp) { echo "ERROR: $errno - $e...

Linux to WinXP over UDP lag

I'm having a problem with a UDPSocket wrapper I've written. I have a high bandwidth low latency local network over which I'm sending UDP packets back and forth. I don't have a concern too much for reliability of packet arrival, but it is incredibly important that the packets that do arrive do so quickly. Here's the relevant code for s...

Networking for two firewalled computers

Say, I have two computers behind firewalls, routers, etc (ie. no incoming connections). Is there ANY way I can connect the two through TCP/UDP protocol without everything going through a special server somewhere? I know Skype does something like that, perhaps not exactly. Thanks. ...

TCP or UDP help with a server/client in c#?

Hi there, Can anyone help, i trying to figure what i need to do, i have been given the tasks of writing a server and a client in TCP (UDP). basically multiple clients will connect to the server.. and the server sends MESSSAGES to the client. I have no problem in creating the server and client but with tcp i am unsure whcih way to go. D...

What is the best way to make TCP and UDP packet spoofing and injection?

Hy folks, I'm kinda new to low level networking. I need to intercepts all TCP/UDP packets and potentially filter or substitute them with new ones. What would be the best way to intercept these packets and inject new one? I'm only targeting Windows platforms. ...

Object Not Garbage Collected

Hello All, I have a third party component I'm using and I'm seeing some issues with resources not being released. The component causes windows to create a handle to a UDP socket ("\Device\Udp" as well as "\Device\Afd"). If I allow the program to execute and dereference the third party object, I assumed that like all .NET objects I've ...