networking

Why are networking UI's so technical and unintuitive?

Even though I am an experienced programmer and engineer, I find that I always run into tedious problems when dealing with networks. Rarely do installations of routers etc work out of the box, and you find yourself trying to learn all kinds of acronyms like WPA, UPnP, etc, and have a hard time trying to map these with the conceptual logic...

Flex famous 2048 security violation error, cross domain.

Hi, I thought 2048 security violation error were mean to happen when trying to access other domains. I got: "Security sandbox violation: http://127.0.0.1/site_media/main.swf cannot load data from 127.0.0.1:80", isn it the same domain? what is the solution ? on doing var loader:MultipartLoader = new MultipartLoader("http://127.0.0.1...

org.jgroups.protocols.UDP - failed sending message to null

[hannel,192.168.0.46:40014] 15:08:03,642 - ERROR - org.jgroups.protocols.UDP - failed sending message to null (61 bytes) java.lang.Exception: dest=/225.1.2.46:30446 (64 bytes) at org.jgroups.protocols.UDP._send(UDP.java:333) at org.jgroups.protocols.UDP.sendToAllMembers(UDP.java:283) at org.jgroups.protocols.TP.doSend(TP.java...

Best Practice: network communication

Hi stackers, I'm programming a simple network chat with a Python server and a Java client. But one question came into my mind: Which "network protocol" should I use for communication? There are some possibilities for me: YAML: Nice to parse, problem: parsed objects contain language specific parts XML: Easy to parse, big overhead for ...

UDP broadcast packets across subnets

Is it possible to send a UDP broadcast packet to a different subnet through a router? I'm writing an app to discover certain devices on the network, and the PC might be on a different subnet than the devices it's looking for. ...

Can I force windows to challenge a user for authentication?

Here is the scenario: There is a file on the network I'd like my program to have access to. They haven't authenticated on the network when they run my software, so accessing the file fails. If I have the user open up explorer and manually navigate to the network path, they get asked by windows for their credentials, and from then on, w...

What is the Main Job of Logical Link Layer in Layer 2.

I am curious to know what Logical Link Layer Does. what is its main significance. Is it part of Software ?. I am looking some detail's of LLC. Advance Thanks. ...

Network interface settings

How can we get the network interface name (i.e. the one that appears in the "Network connections" dialog) given the device description (i.e. the string that appears in the "Device Properties -> Connect using:" textbox)? We must do it in pure C/C++ language, or through some of the standard command line tools (e.g. netsh, ipconfig...), or ...

Why can I see my website even though it's down?

I'm wondering if anyone knows how this happens? My website is down, but every computer on my internet connection/router can see it. I've cleared my cache etc, but another computer in the house shouldn't be seeing a site that's offline. How weird? It's hosted remotely, not on my network or anything. ...

"Repair" network connections programatically/from command line

Does anyone know exactly what Windows XP does when you click "Repair" on a network connection? I'd like to do the same programatically or from a command line. I did a Google search and found this article, which has a good explanation, but I don't think it's complete. I can reliably reproduce a condition where I lose network connectivity...

Same server, same program but started once using one network card and after with another

Hello, I have a Linux server with multiple ips (so, multiple eth0, eth0:0, eth0:1 etc). The script I'm trying to start is a php CLI script which is downloading stuff from an another server API, and I would like to change the IP based on different parameters. Once the script is started, I don't need anymore to change the ip OF THAT SPECIF...

how to limit bandwidth used by mysqldump

I have to dump a large database over a network pipe that doesn't have that much bandwidth and other people need to use concurrently. If I try it it soaks up all the bandwidth and latency soars and everyone else gets messed up. I'm aware of the --compress flag to mysqldump which help somewhat. How can I do this without soaking up all th...

Real-time multiplayer game (concept question)

I've been reading this article from Valve that seems to explain the architecture of their multiplayer system. It seems they delay rendering by a couple ticks on the client so they can handle dropped packets, but they also send packets as "delta snapshots" (the difference between two adjacent states). Suppose we have times A, B, C, and t...

How to do private comms between private apps over network?

It's basically one app that is installed on multiple PC's, each install maintaining it's own database which is sync'd with other's as & when they are up (connected to the same network) at the same time. I've tested this using simple socket connections and custom buffers, but want to make the comms between the apps conform to accepted st...

In Windows Mobile (5/6) SDK, where did windns.h go?

According to http://msdn.microsoft.com/en-us/library/aa916070.aspx (DnsQuery_W), DNS query libraries are available on Windows Mobile / CE developers for versions 5.0 onwards. Yet, "#include " gives nasty "file not found" errors. What gives? Strangely enough "dnsapi.lib" is available. Does Microsoft actually expect developers to scavenge ...

Good language to develop a game server in?

Hello, I was just wondering what language would be a good choice for developing a game server to support a large (thousands) number of users? I dabbled in python, but realized that it would just be too much trouble since it doesn't spawn threads across cores (meaning an 8 core server=1 core server). I also didn't really like the languag...

Packet data structure?

Hello, I'm designing a game server and I have never done anything like this before. I was just wondering what a good structure for a packet would be data-wise? I am using TCP if it matters. Here's an example, and what I was considering using as of now: (each value in brackets is a byte) [Packet length][Action ID][Number of Parameters]...

How do I detect whether a given IP is in a given subnet in Javascript?

I'd like to write a function in Javascript along the lines of: in_subnet(ip, network, slash) { ... } in_subnet('1.2.3.4', '1.2.0.0', 16) # True, since it's in 1.2.0.0/16 in_subnet('1.2.3.4', '1.2.0.0', 24) # False, since it's not in 1.2.0.0/24 Should I write it from scratch, or are there some good libraries I could use? Or is the...

Large amount of data - what is the best way to send them?

Hi, we have this scenario: A server which contains needed data and client component which these data wants. On the server are stored 2 types of data: - some information - just a couple of strings basically - binary data We have a problem with getting binary data. Both sides are written in Java 5 so we have couple of ways.... Web Se...

Java RMI Resources

Hi everyone I am currently undertaking a project that involves extensive use of Java RMI and I was wondering if anyone is aware of any good resources about it. The problem I am having with the material I am finding currently is that its usually quite out of date (like Java 1.3) and / or half complete. I would even be happy to buy a book...