Question:
I query a Quake3 masterserver via UDP, and get the response as below.
As you can see, I had trouble figuring out the encoding of what the server sent...
Is there any way to detect or set the receive encoding ?
baBuffer = new byte[1024*100]; // 100 kb should be enough
int recv = sctServerConnection.ReceiveF...
For this semester in university, we have to write networked games (in java) in teams of 4. I have volunteered to work on the networking code for my team.
Reading up on java networking, it seems there are two UDP methods of networking:
http://java.sun.com/j2se/1.4.2/docs/api/java/net/DatagramSocket.html
This is a standard looking UDP so...
I get the return value of the read operation as 0 if the sockets is non blocking, and the real number of bytes read if the socket is marked as blocking. cant understand why though ...
this is on an embedded OS, but supposed to be Berkely sockets
...
I have been looking for a solution to this problem for ages. I have tried many things, including BeginReceive(), but all to no avail. There must be a way to do this, make a UDP-Client receive call that is non blocking AND thread safe. I am trying to receive a message and write it to a Rich Text Box.
using System;
using System.Collection...
My server use UDP. It sends 900bytes/1ms to my program automatically after being acquired. I'm using socket API in Windows (VB 6). I had made a test and I know that the message processing time (about 0.3ms) of my program is shorter than cycle time (1ms). So the cause should be socket internal buffer. I try calling setsockopt function to ...
Hello,
In Linux, one can specify the system's default receive buffer size for network packets, say UDP, using the following commands:
sysctl -w net.core.rmem_max=<value>
sysctl -w net.core.rmem_default=<value>
But I wonder, is it possible for an application (say, in c) to override system's defaults by specifying the receive buffer si...
When I try to add a strServerIP to the class Server, I get a:
Cannot resolve symbol string
compiler error.
Why?
package com.example;
public class Server
{
//public static java.lang.string SERVERIP;
public static android.R.string SERVERIP;
public static java.lang.string strServerIP = "monster.idsoftware.com";
public s...
I am opening socket on windows platform for sending RTP voice packets. The application is softphone. What preferable options should be set on this socket.
...
The below code results in a timeout.
It works fine on non-Android Java. What's the matter?
//@Override
public static void run()
{
//System.out.println ( "Local Machine IP : "+addrStr.toString ( ) ) ;
HelloWorldActivity.tv.setText("Trace 1");
try
{
// Retrieve the ServerName
InetAddress serverAddr; ...
One of our customers experiences problem with our streaming application (win32). It seems like UDP (RTP) packets that should be sent by the application with some constant interval (say 20 ms) are actually sent with a greatly variable deltas (say 15ms - 25ms - 10ms - 30 ms). This is the only customer that experiences the problem so netwo...
Hi!
I'm creating a server(now called Server1) which is communicating with another server i've got(now called Server2).
Server1 sends a datagrampackage to Server2.
Server2 is supposed to send two datagram packages back, but i only get one back.
Server2 is not the problem, and sends two packages.
I use Wireshark to sniff the packages ...
If i use UDP sockets for interprocess communication, can i expect that all send data is received by the other process in the same order?
I know this is not true for UDP in general.
...
Updates
01-27ter: rp_filter information added
01-27bis: Note that the 9.04 box works on a different interface.
01-27: Added interface configuration information and analysis of a packet.
Original Post
I've got two extremely similar hardware configurations (SuperMicro 1U systems with dual Xeon CPUs and two Ethernet ports on board), on...
I have a problem with Perl script for Linux. It's main purpose is to be middleman between 3 applications. What it should do:
It should be able to wait for UDP text (without spaces) on $udp_port
When it receives that UDP text it should forward it to the TCP client that is connected
Problem is my app currently works until the first t...
I am trying to make a set of applications discover each other using UDP and broadcasting messages. The applications will periodically send out an UDP packet saying who they are and what they can do. Initially we only use to broadcast to INADDR_BROADCAST.
All applications share the same port to listen to (hence the SO_REUSEADDR). An even...
I want to send OSC messages from iphone to another programme (max/msp) by creating and connecting to a udp socket. this works from the iphone simulator, i.e. when both apps are running on the same computer but not when i install the app on the phone itself.
I think the problem could be with specifying the IP of the remote computer. I am...
Hi,
I have written a UDP client server chat, I am able to communicate to server if both server and client are on same machine, but i am not able to do so when client is on some other machine using diff ip address. Is there any special setting to achieve this?
Regards,
Tara
...
I have a router running Linux that acts as the central gateway to the Internet for a network of embedded devices that use IPv6 to communicate. I would like to intercept, inspect, and rewrite every packet that goes in and out from the Internet to this subnetwork. The reason I need to do this is that I want to create a transparent (to both...
I'm trying write a java program to send live microphone data over UDP, then receive the data in VLC. I'm basically using the same code as in this post to package up the stream and send them over. When I receive the data in VLC, I get nothing. I see a bunch of input coming in but none of it is interpreted as audio data. It tries to resolv...
On a computer with both an active Wireless Card and a LAN-Port with a crossover cable hooked up to another machine running the same application, we need to send a UDP multicast over the LAN wire to the other computer. Using C# Sockets, Windows seems to try to route the message over the WLAN adapter every time.
Is there a way to specify ...