udp

Network probing on IPv6

I am familiar using IPv4 broadcast of UDP packets as a technique for probing the network looking for servers running a given service. I.E. the broadcast packet is sent out on a given port and the listening servers can reply to this packet and the reply will allow the client to know the ip addresses of the available servers. I am wonder...

UDP minimum delay.

Hi, I have two computers (Client/Server) transferring video frames with UDP on 1G Ethernet. I use socket size as ~ 1.5k. If I make less then 10ms delay between data sending there is data loss, which is very slow for me if I want live video broadcast. If there formula to calculate time delay needed between data sending? Can I test if HW...

TFTP source code examples

Could someone point me to the source code for an ideally multi-threaded C++ TFTP application. Even better if it's written using boost asio. Just wanting to get an idea of how to structure a multi-threaded c++ network app with UDP rather than TCP. I'll choose the answer based on how readable the code is and being in C++. ...

Why is SNMP usually run over UDP and not TCP/IP?

This morning, there were big problems at work because an SNMP trap didn't "go through" because SNMP is run over UDP. I remember from the networking class in college that UDP isn't guaranteed delivery like TCP/IP. And Wikipedia says that SNMP can be run over TCP/IP, but UDP is more common. I get that some of the advantages of UDP over TC...

how to forward udp packets over tcp (udptunnel)

how to use "udptunnel" so that i will be able to send and receive udp packets over tcp probably with an example ...

How to identify sender's ip address of a udp packet received on iOS device?

How to find out the sender's ip address of a udp packet that was received on a device running iOS 3.2 or higher? For example, if using Python on a computer, I'd use SocketServer.UDPServer which takes a subclass of SocketServer.BaseRequestHandler which defines the handle callback. When a packet arrives, the callback is called and the se...

Makeing a Proxy connection (both client / server behint NAT)

Hello, I want to get a PROXY Server getting to run behind NAT. (Ok I can configure the Port forwarding in the router, but I want it instantly!). So lets say A wants use Bs running proxy server. A / B are behind a router with NAT. So what now? A calls up the Server S to let him know that he wants a Proxy connection to B while B did alrea...

CFNetwork packet read callback not being called (iPhone)

Running on the iPhone simulator, I am listening on a port for packets, but my callback never gets called (and the packets are being sent for sure, checked with wireshark). Simplified code follows: #define IN_PORT (51112) static void ReadCallback (CFSocketRef theSocket, CFSocketCallBackType theType, CFDataRef theAddress, const void *da...

winsock: recvfrom does not receive in release build(VS 2010)

Hey... I wanted to build my client program in release mode and everything seemed to work fine. The client was able to send data, which have been received by the server. But the client never receives the answer sent by the server. The server is working correctly The data size is only up to 200 bytes sending works... I am using Visual S...

What are the units of UDP buffers, and where are docs for sysctl params?

I'm running x86_64 RedHat 5.3 (kernel 2.6.18) and looking specifically at net.core.rmem_max from sysctl -a in the context of trying to set UDP buffers. The receiver application misses packets sometimes, but I think the buffer is already plenty large, depending upon what it means: What are the units of this setting -- bits, bytes, packet...

Does TCP send a SYN/ACK on every packet or only on the first connection?

I have a TCP server that listens for an incoming client, then sends it one packet of data every second. I was wondering, does the SYN/ACK packet only get sent on initial connection, so it looks like this: <client connect> SYN ACK DATA DATA DATA <client disconnect> Or does it get sent with every packet, like this? <client connect> SYN...

C# Getting sender address from UDP message

I have an embedded Ethernet interface (Lantronix XPort) that responds to a UDP broadcast with its identifying information. I am able to multicast the "magic packet" and datagrams are received by the listener correctly, however I also need to find out what IP Address send that response datagram. If it were TCP, I would do socket.RemoteEn...

Can two applications communicate by UDP packets?

I'm looking for a way to ease the difficulty transferring data from one application/process to another, but should have some sort of error recovering capbility. As UDP is an existing protocol that works well over network, I wonder if it can also be used by processes in the same OS(windows xp here) . If yes can you provide some core cod...

UDP socket network disconnect behavior on Windows-Linux-Mac

Hi folks, I made an application using boost.Asio using UDP multicast. I don't think the question is really specific to boost.Asio but to sockets programming in general, since boost.Asio's network facilities are mostly wrappers to socket functions. I constructed the application based on the multicast examples ( http://www.boost.org/doc/...

QUdpSocket problem

I try to send data using UDP protocol. Is it possible to understand when UDP dont send data? Thanks a lot. I try to a servis which run into client. And they send their IP an port number in one second. Server listen them and if they dont send this message it understand that client is not connected. I do this but I cant understand when t...

Communication over WAN

Hi, I want to create app client-server in C# but not only in LAN. There it's easy: TcpListener, TcpClient etc. I want to make sth like in this e.g. On my comp is server that's waiting for a connection. Someone in another network has client. He begin connection, but...where...what is a IP of server? He see only ip of router. Any ideas?...

C#: UDP Listener Thread

Hi, i found articles to that topic, but they dont solve my problem... I want to use UDP-Sockets for my XNA-Networkgame. And now i am trying to code a reliable Listenerthread, but there are some Problems. If i use socket.Receive it will wait until a packet. This is fine for my Listenerthread. My thread has a while-loop like this: while...

Receive UDP data from multiple sources in Matlab

I need to set up a UDP reader in Matlab that receives data from a number of sources. I typically use this for a single data source: [packet,~,~,senderaddress]=fread(s,s.BytesAvailable) The problems are that I want to avoid waiting for the timeout, I don't have terminated data arriving, and packets are of unknown sizes. Has anyone el...

UDP client and server with Twisted Python

I want to create a server and client that sends and receives UDP packets from the network using Twisted. I've already written this with sockets in Python, but want to take advantage of Twisted's callback and threading features. However, I need help though with the design of Twisted. I have multiple types of packets I want to receive, b...

intermittent "No Route to Host" on iOS, flight mode off then on fixes

Hi all, My iPhone app uses UDP to communicate over the cell network. It generally works, except that sometimes the operating system returns "No route to host" (65) on a sendto call, and it never works from that point onwards -- I just keep getting same error, even if I close and reopen the app. However, if I toggle flight mode (presum...