network

What's the easiest way to verify there's an available network connection?

Hi, I'm a bit of newbie to c#/.net development, but I've put together a stock tracking application for a small set of assets in my company. I have also set up the database it connects to in SQL 2000. It currently works brilliantly when a network connection is available, but I want to expand it for use when I'm away from a connection. ...

MySQL: SELECT from another server

I'm afraid that I already know the answer to my question, but I'll ask it anyway: When there are two MySQL DB servers, can I access data that is stored on the other server? In other words: Can I somehow do this: INSERT INTO table (x, y, z) SELECT x, y, x+y FROM [otherserver].[database].[table] Is the answer really as short...

Distributed network-quality monitoring for Windows

My office is cursed with a very unreliable network. From time to time things just seem to stop working - the servers are all fine. We think the fault lies in the wires and routers between our computers. My team looks after a large number of Windows servers and workstations. Each PC runs a number of distributed applications, hence any c...

Is there a way to allow a Windows service (unmanaged c++) to write files on a shared network folder?

I tried running the service in the "Local System" : didn't work. I tried running the service in an account having rights on the network shared folder : didn't work. Do I have to create a standalone application for this and launch this application as a user with rights on the network shared folder? Thanks, Nic ...

Safe, efficient way to access unaligned data in a network packet from C

I'm writing a program in C for Linux on an ARM9 processor. The program is to access network packets which include a sequence of tagged data like: <fieldID><length><data><fieldID><length><data> ... The fieldID and length fields are both uint16_t. The data can be 1 or more bytes (up to 64k if the full length was used, but it's not). ...

404 BadRequest exposing WCF service through external IP using IIS host headers

Hi! We host a WCF webservice on Windows Server 2003. This server only has 2 internal IP's. We want to expose the service externally. This is done through the firewall that maps an external IP to the service. So, I would need to modify the service to display that external IP for the internal links. This is not an issue since it should o...

Firing an event over a network

Where would I start with firing an event over a network? In my case, when I change a database record, I want to inform any other user on the network running the same application that it has changed. Edit: It's nothing clever, don't get excited. I'm writing a document management system and when a document is changed in any way (deleted,...

How are these extra error log files created?

One of our clients has been having a lot of network problems lately. When I went to retrieve the errors text file on their server computer I discovered about a dozen files, one was the correctly named file "errors.txt" but the others had names like "errors (computernameA v1).txt" "errors (computernameA v2).txt" "errors (computerna...

Serial Comms dies in WinXP

A bit of history: We have an application, which was originally written many years ago (1998 is the first date in PVCS but the app is about 5 years older than that as it originally was a DOS program). This application communicates with a piece of hardware via serial. When we got to Windows XP we started receiving reports of the app dying ...

Detecting network connection speed and bandwidth usage in C#

Is there a way to detect the network speed and bandwidth usage in C#? Even pointers to open-source components are welcome. Thanks in advance. ...

Does anyone know a java component to check if IP address is from particular network/netmask?

I need to determine if given IP address is from some special network i must authenticate automatically. ...

Lighttpd upload problem

In lighthttpd, when I set: server.network-backend = "freebsd-sendfile" the file upload just hangs for files > ~1MB, but if I change it to: server.network-backend = "writev" It seems to work fine, but I'm getting lower performance by using that setting. Is there a better solution? ...

Determine remote client IP address for Java RMI call

When I implement an RMI server (implement an interface that extends java.rmi.Remote) is there a way to get information about the current RMI request context, specifically the remote client's IP address? public void myMethod() throws RemoteException { log.info("remote IP is "+ RMISomething.getSomething()); } ...

Good asynchronous TCP based protocol for non-realtime games?

I'm developing open source cross-platform platform for non-realtime multiplayer chat/game system. Like card games, boardgames, turn-based, etc. Servers are spawned server-side (not from users computer). Client has these game modules or downloads game module and then runs them. I've come to conclusion that best protocol is "IRC-like". S...

How can I get the current network interface throughput statistics on Linux/UNIX?

Tools such as MRTG provide network throughput / bandwidth graphs for the current network utilisation on specific interfaces, such as eth0. How can I return that information at the command line on Linux/UNIX? Preferably this would be without installing anything other than what is available on the system as standard. ...

Sharing Adobe Flash Projector (.EXE) over Local Area Netwrok

A forthcoming project requires that a Flash projector (.EXE) be kept on a server and accessed by multiple users over network (LAN). There will be a central access database as a backend. I am using a third party SWF2EXE (SWF Studio) product to have database functionality. I would like to know if sharing an EXE file this way is practical. ...

how would you debug this javascript problem?

I've been travelling and developing for the past few weeks. The site I'm developing was running well. Then, the other day, i connected to a network and the page 'looked' fine, but it turns out the javascript wasn't running. I checked firebug, and there were no errors, as I was suspecting that maybe a script didn't load (I'm using the ...

Firefox requesting images slowly

I have created a simple JSF image browsing app, and I'm having a problem with firefox. The app itself is running inside Tomcat. The pictures are stored in a directory that is served by Apache. I've got 9 pictures that get shown on a page. The servers are on a machine separate from the client. When I try to load the page in firefox...

RMI and exceptions

I am new to using RMI and I am relatively new to using exceptions. I want to be able to throw an exception over RMI (is this possible?) I have a simple server which serves up students and I have delete method which if the student doesn't exist I want to throw a custom exception of StudentNotFoundException which extends RemoteException...

Automated Script for testing Network Connectivity in Linux

I have got a requirement to test network connectivity to around 30 servers with different ports as part of some new firewall rules implementation. After the rules are in place i need to check whether the connectivity is succesfull or not, and i need to test the same rules from 3 servers. SO i am looking at some way i can automate this. C...