client-server

.net activeX equivalent

Is there a pure .NET replacement for ActiveX? I'm asking if there is a way for me to write a thick client side control to be loaded and interacted with in a web page in .NET, with NO com. Edit: I don't want ActiveX in pure .NET, I want a .NET alternative to ActiveX. ...

How should server push data to rich client

I'm writing a simple accounting program consists of several C# winform clients and a java server app that read/write data into a database. One of the requirement is that all C# clients should receive updates from the server. For example, if user a create a new invoice from his C# client, other users should see this new invoice from their...

How do I obtain the latency between server and client in C#

I'm working on a C# Server application for a game engine I'm writing in ActionScript 3. I'm using an authoritative server model as to prevent cheating and ensure fair game. So far, everything works well: When the client begins moving, it tells the server and starts rendering locally; the server, then, tells everyone else that client X ...

How do you transfer binary data with Python?

I'm working on a client-server program for the first time, and I'm feeling woefully inadequate on where to begin for what I'm doing. I'm going to use Google Protocol Buffers to transfer binary data between my client and my server. I'm going to be using the Python variant. The basic idea, as I understand, is that the client will serial...

Designing a client/server program, design question (.Net)

We are designing a client/server program and I need some help with a design decision. The server side of the program will run as a service on a number of Windows servers, the service is monitoring those servers, when needed the service will email us a report. The client will be used to control and manage the services running on the ser...

socket:client waiting even after recieving last byte

I have client/server program in C, through which I am transferring files to the client from server. But the client is waiting for recv even after receiving the last byte of the file. Client is terminating only if I kill it or server is killed by me. But server has to be in a loop as it to has to entertain the request of other clients. ...

Why is Java on Server and C# on Client a popular choice?

I have seen a few examples where the architecture is that there is java on the server side and c# on the client - what makes this combination so good? why would .net on both sides not be a better choice (or in fact, java on both sides?) added later: in lots of cases, the java is hosted on a windows server itself, i think via tomcat (not...

How to improve the performance of Client-Server Architecture Application?

We have a product built on the Client-Server architecture. Some details about the technology stack used. Client - Java Swing Server - RMI Java Database - Oracle The clients are located at different parts of the world but the java server & the oracle database are located on the same machine at Sweden. Because of this there is a lo...

How to sync a list on a server with many clients?

Consider a poker game server which hosts many tables. While a player is at the lobby he has a list of all the active tables and their stats. These stats constantly change while players join, play, and leave tables. Tables can be added and closed. Somehow, these changes must be notified to the clients. How would you implement this functi...

Notify client about expired session - web programming

Is it posible to notify user that session has expired? Can browser act as server and receive such notifications? One solution would be to generate JavaScript that does countdown on client side and notifies client in the end, but I am iterested if it is postible to do it the first way? And what are the consequences of first approach? A...

How to route to the nearest RMI Server?

In continuation to my question How to improve the performance of client server architecture application I have decided to maintain a centralized database and several slave server-database configuration. I plan to use Symmetric DS for replicating between the slave and master database. Each server-database configuration would be installed...

Communication (Interprocess) between applications?

I'm about to write a "server" application that is responsible to talk with external hardware. The application shall handle requests from clients. The clients send a message to the server, and if the server is busy with doing stuff with the hardware the new messages shall be stored in a queue that will be processed later. The client sha...

MSMQ for Server to Client Comms

We were looking at MSMQ for persistent ‘push’ server to client communication. There can be up to 1000 clients per server. In one of our tests, we sent a small message to 300 offline clients, and then sent a message to an online client. The last message was delayed by over 40 minutes as MSMQ worked its way through the undeliverable messa...

Design patterns for event-driven logic

I'm developing a desktop application which depends on the XML data it receives from a server. There are several files, needed to be downloaded at different time. A number of data structures is populated with parsed data. The correspondence between files and data structures isn't 1-to-1, as a matter of fact may be rather complicated. Ap...

How can I increase the number of users of my system?

I have a client/server application that depends on MS SQL database for backend storage, the server application is a WCF TCP service that handles the clients requests by selecting from the database set of information. The service is configured as PerSession and support 500 sessions. In the client side the user can open different views ea...

Java client-server communication

I have a Java application which is a long running process (lets call it a "server"). I have to write a desktop GUI (most likely in Swing), lets call it a "client", which can connect to this application and: display status updates from the application give specific "manually triggered" commands to the application Each interaction (co...

Monitor.Wait/Pulse race condition in a multithreaded server

I'm having a problem with interlocked Monitor.Wait and Monitor.Pulse in a multi-threaded TCP server. To demonstrate my issues, here is my server code: public class Server { TcpListener listener; Object sync; IHandler handler; bool running; public Server(IHandler handler, int port) { this.handler = handle...

The AJAX response: Data (JSON, XML) or HTML snippet?

I'm just wondering what is an "ideal" output format for the AJAX response? Pure data (JSON, XML) rendered into the page using some client-side JavaScript template engine? Or an HTML snippet rendered into the page "as-is"? What is your preference and why? ...

Is there a way to know the URL of the SVN server?

Right now, we are having problems allowing the client to access the svn server because of the unknown host name error. Is there an error which will tell the correct svn server URL from the server computer? Thanks. I am on Collabnet Subversion Server and the client uses TortoiseSVN. ...

Metric for the impact of an application on network traffic

I'm writing an application and I'm able to set its throughput (the number of bits per second it sends over the wire) to whatever rate I wish. However, I would like to set it as high as possible, as long as other traffic on the network is not heavily impacted. The problem is, I don't have a good metric to measure that impact. I thought o...