udp

Linux vs Win runtime timings.

Hi, I have an application which was ported from Windows to Linux. Now the same code compiles on VS C++ and g++, but there is a difference in performance when it's running on Win and when it's running on Linux. The scope of this application is caching. It's a node between a server and a client, and it's caching client requests and server...

C: getting hostname from TCP and UDP socket?

I'm not really familiar with the connection protocols. I'm using the following code to examine connect() so I can get the hostname: #ifndef NI_MAXHOST #define NI_MAXHOST 1025 #endif int error; char hostname[NI_MAXHOST] = ""; error = getnameinfo(serv_addr, addrlen, hostname, NI_MAXHOST, NULL, 0, 0); if (error !=0) { ALogTC...

Java NIO UDP - Selector Hangs when trying to register

final DatagramChannel dc = DatagramChannel.open(); dc.configureBlocking(false); dc.socket().bind(localAddress); final SelDatagramChannel c = new SelDatagramChannel(dc, datagramListener); --->>>> final SelectionKey sk = dc.register(selector, SelectionKey.OP_READ); The market line hangs forever when you try...

Receiving packets in UDP

Let's say my program sends a 1000 bytes over the network (UDP). Does it guaranteed that the receiver will receive the 1000 bytes in one "batch"? Or perhaps he will need to perform sevral "reads" until he'll receive the entire message? if the later is true, how can i ensure that the order of the packets for the same message don't get "mix...

C++ multiplayer UDP socket API

Hi all! Can anyone recommend an easy to use, fast and reliable C++ API for sending and receiving data over a UDP socket? Maybe something that is specifcally intended for multiplayer games? ...

does google talk use udp or tcp packets?

is it possible to determine whether google talk uses tcp or udp packets for transmission. i know it uses the xmpp protocol at the application layer, but does it run over tcp or udp. ...

What's the delay for in TCP/UDP?

HELP PLEASE! I have an application that needs as close to real-time processing as possible and I keep running into this unusual delay issue with both TCP and UDP. The delay occurs like clockwork and it is always the same length of time (mostly 15 to 16 ms). It occurs when transmitting to any machine (eve local) and on any network (we hav...

Need microsecond delay in .NET app for throttling UDP multicast transmission rate

I'm writing a UDP multicast client/server pair in C# and I need a delay on the order of 50-100 µsec (microseconds) to throttle the server transmission rate. This helps to avoid significant packet loss and also helps to keep from overloading the clients that are disk I/O bound. Please do not suggest Thread.Sleep or Thread.SpinWait. I woul...

Real-time game networking libraries for games in Java and Objective-C

I'm looking to build real-time games built using a dedicated Java server and iphone clients as well as Java desktop clients. What available high-performance network transport libraries that could be used for real-time multiplayer game development, exist for Java and iphone (specifically reliable UDP)? The general advice for most real-ti...

What is Connection?

I am getting confused between TCP being Connection oriented and UDP being connectionless so please somebody clarify this. Every communication between two computers whether its TCP or UDP is via packets. There is no hard wire connection between two peers whether its TCP or UDP. Then why TCP is said to be connection oriented just because...

High speed UDP receiver in MATLAB

I'd like to implement the receiving end of my system in MATLAB - this requires Gigabit Ethernet with sustained speeds of over 200Mb/sec. Using MATLAB's built-in UDP from the Instrument Control Toolbox does not appear to be sufficient. Are there any good alternatives? ...

UDP Multicast Performance Under Load

I have a simple C# application that uses UDP multicast in a single-receiver, single-sender scenario. The goal is to get message delivery as fast as possible in a local network environment. I have used SocketAsyncEventArgs/SendAsync/ReceiveAsync, BeginSend/BeginReceive, Threads/Send/Receive, and have tried both PGM and UDP multicast. E...

Send reply to broadcast with a Socket

I'm trying to send a broadcast and then let the server reply to it: public static void SendBroadcast() { byte[] buffer = new byte[1024]; var socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, 1); ...

Multiplayer UDP networking strategy, advice needed.

I'm attempting to create a C++ plugin for a realtime 3D game. Although I believe to have a firm grasp on the theory of UDP, how it works, what its strengths and weaknesses are, my primary matter of concern is performance, scalability and likely statistics. I am aware that I probably know only about a drop in the oceans worth when it come...

UDP Listener XP/Vista/Win7 Differences?

I've developed some software on my Desktop which runs Windows 7 and the software appears to work perfectly. The software seems to work well on our Vista laptop too. However I'm having some issues getting it working on XP. The software starts with a discovery tool which sends out UDP broadcast messages on port 46787 and listens for reply...

UDP real-time games in Flash/Flex available Open source RTMFP implementation

Are there any examples of using the Flash 10 beta RTMFP UDP based protocol to build real-time Flash games. The RTMFP examples so far seem to focus on P2P networking between flash clients does anyone know of any examples of traditional client/server UDP based communication over RTMFP. Does anyone know the ability of RTMFP to do NAT firew...

Using the system time for node locked licensing

I have node-locked licensing working, using the MAC address and system time. We're concerned that people will just edit their system date to extend a license, so I've tried getting the real date from an machine in the NTP pool. That works, but then obviously you can't use the product without being online, and it doesn't seem to be 100% r...

Can two application listen to the same port?

As simple as it gets - can two application on the same machine bind to the same port and ip address? Taking it a step further, can one app listen to requests coming from a certain ip and the other to another remote ip? I know I can have one application that starts off two threads (or forks) to have similar behavior, but can two applicat...

How many open udp or tcp/ip connections can a linux machine have?

There are limits imposed by available memory, bandwidth, CPU, and of course, the network connectivity. But those can often be scaled vertically. Are there any other limiting factors on linux? Can they be overcome without kernel modifications? I suspect that, if nothing else, the limiting factor would become the gigabit ethernet. But for ...

DNS Server Refusing Connection

I am implementing a dns client, in which i try to connect to a local dns server, but the dns server is returning the message with an error code 5 , which means that its refusing the connection. Any thoughts on why this might be happening ?? Thanks ...