udp

libnet creates UDP packets with invalid checksums

I'm using pylibnet to construct and send UDP packets. The UDP packets I construct in this way all seem to have invalid checksums. Example: # python Python 2.4.3 (#1, Sep 3 2009, 15:37:12) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> >>> import libnet >>>...

Why doesn't Silverlight or Flash implement UDP sockets?

I've read that several browser plugin's support UDP sockets (eg Java, Unity), however the most popular plugin, Flash, doesn't support UDP sockets!? And neither does my favorite, Silverlight. Now, I know that Silverlight 4.0 Beta has Multicast UDP sockets, but these are useless on the public internet, which is where I want to use the...

Determine asymmetric latencies in a network

Imagine you have many clustered servers, across many hosts, in a heterogeneous network environment, such that the connections between servers may have wildly varying latencies and bandwidth. You want to build a map of the connections between servers my transferring data between them. Of course, this map may become stale over time as th...

Voice Communication over TCP/IP

Hello, I'm currently developing application using DirectSound for communication on an intranet. I've had working solution using UDP but then my boss told me he wants to use TCP/IP for some reason. I've tried to implement it in pretty much the same way as UDP, but with very little success. What I get is basically just noise. 20% of it is...

when is IPPROTO_UDP required?

When is IPPROTO_UDP required? Is there ever a case where UDP is not the default protocol for SOCK_DGRAM? (real cases, not hypothetical "it might be", please") i.e., what are the situations where the following two lines would not produce identical behavior? if ((s=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP))==-1) if ((s=socket(AF_INET, SO...

In memory database with socket capability

Python --> SQLite --> ASP.NET C# I am looking for an in memory database application that does not have to write the data it receives to disc. Basically, I'll be having a Python server which receives gaming UDP data and translates the data and stores it in the memory database engine. I want to stay away from writing to disc as it takes ...

Python UDP socket port random, despite assignment...

Hi guys! I have two simple Python files: client.py and server.py. The client simply sends the text you type to the server, via UDP socket. The port assigned and listened to is 21567, BUT... the line reading: print "\nReceived message '", data,"' from ", addr in server.py outputs the addr to be something looking like this: ('127.0.0...

Does Rails support a neat way of listening to a UDP socket?

In Rails what would be the best way of integrating a UDP listening process that updated certain elements of the model (specifically its going to be adding rows to one of the tables). The simple answer seems to be start a thread with the UDP socket object within the same process, but its not clear quite where I should even do that which ...

process termination

Hello, I have 2 processes and they send UDP messeges. They don't read the messages immeditely and sometimes when they read the messages they can read a bulk of them. I saw that when one of the processes is down the other one is still getting those messages. How come ? it is down. Thanks ...

Multiplayer Networked Anagram game

Hello! I need some help about this little project. I'm begginer in java and it seems to me too hard to make it by myself. So please Help me. I will apperciate any help... A waiter delivers a sequence of letters to various players who are connected. Each player proposes a server anagrams he discovered from the sequence of letters: the...

what happens when tcp/udp server is publishing faster than client is consuming?

I am trying to get a handle on what happens when a server publishes (over tcp, udp, etc.) faster than a client can consume the data. Within a program I understand that if a queue sits between the producer and the consumer, it will start to get larger. If there is no queue, then the producer simply won't be able to produce anything new,...

Ignoring your own UDP broadcasts in Java

In my program I'm sending out UDP broadcasts and reacting to them. I need a way to ignore the UDP broadcasts that I send out, but react to ones that aren't from my machine. I did try using: if (NetworkInterface.getByInetAddress(packet.getAddress()) != null) but this generated IOExceptions in some cases (java.net.SocketException: no netw...

.NET Alternatives to UDP Multicast

I am looking for an alternative to using UDP multicast on the .NET Framework and am looking for suggestions. I need to send messages to several web servers running quite a few ASP.NET applications. These messages would be one-way only, coming from several different machines. UDP multicast would be perfect except that I can't use it due ...

How to assure a UDP server does not lose incoming data?

There is a data feed server receives feed from various clients by means of UDP,because the clients are pumping data so fast,the receiving buffer is very easily to get full if the server spends time on processing the received data,so Will it help that if the feed server just multicasts all data it received to the other servers on LAN w...

UDP socket problem.

I'm writing a multiplayer game (obviously using UDP sockets. note: using winsock 2.2). The server code reads something like this: while(run) { select(0, &readSockets, NULL, NULL, &t) if(FD_ISSET(serverSocket, &readSockets)) { printf("%s\n","Data receieved"); //recvfrom over here } FD_SET(serverSocket,...

Read-Write UDP connected sockets?

We are trying to get two programs to communicate with each other in a game-like fashion. They maintain a TCP connection with a central server for "control" type information, which that central server ensures both clients receive. The two clients then communicate with a udp server using sendto() and recvfrom() which just sends the infor...

UDP packet encryption

This appears to be reasonably trivial if using the ssl module for TCP communication, but how would encrypted communication be done via UDP? Can the ssl module still be used? if so, what steps would need to be performed for the client and server to be in a position where data can be sent to-and-fro as normal? ...

Simple UDP Socket Tutorial Needed

I have been searching and reading all day, and have not found a UDP sockets programming tutorial suitable for a newbie. I know UDPClient programming, but, because of the inability of UDPClient to receive a message without blocking AND without having problems with cross-thread commands, I have turned to sockets. I don't even truly know if...

python listen 2 port same file

Hi, I would like to listen on 2 different UDP port with the same server. I use SocketServer lib for my server, and basicly it looks like that; SocketServer.UDPServer(('', 7878),CLASSNAME) I would like to listen on 7878 and 7879 with the same server and same file. Is that possible ? If yes how ? Thanks in advance. ...

Simple networking help (C# WinForms)

Hi All I'd like my app to be able to communicate with itself via the internet but this is proving to be impossible for me. One thing I've never been able to work out is Tcp or the whole networking thing in general. I have read the docs and seen literally over 30 samples, none of which have ever worked. All I'm trying to do is send a m...