client-server

why are some posix shared memory segments and posix semaphores not visible to ipcs

I built a client server application using posix shared memory and posix unnamed semaphores with pshared=1. The semaphores are placed inside the shared memory. The program runs fine, but when I type ipcs -m or ipcs -s, I do not see any shared memory segments or semaphores that I created. Why is it so? /* Server main function for implemen...

Client unexpectedly shutdown

I am working on a .net rich client server application, the client call the server thru web service, what could happen if the client is suddently shutdown(connection closed) when it is calling the server? will the server be able to dectect this? If the client is submitting a request to persist a set of data to server database, will the tr...

C# client-server protocol/model question

I am trying to conceptually work through a model for a client-server socket application I am writing in c# (both client and server). My server will need to handle many clients at once, and preferably multiple requests from a client at once. I have worked out a container for my communication where I will send a fixed length header at t...

How to create a messaging service??

I want to create a messaging service that uses the XMPP protocol. How would I implement the server-side as well as the client side aspects of this service? I know I would need a server (like Jabberd 2) that runs the messaging framework. How hard would this be to set up and get running? Also what would be the best way to hook up a cli...

C# Console: Write while reading and retain structure.

I am writing a C# console application that connects to a server trough TCP, it uses a separate thread to listen for incoming messages from the server and I want it to write them to the console while at the same time reading a message from the console. I was able to do that, but I have a problem. The console displays this while I type an...

The client (desktop app) pulls data...but I want the server (web app) to push data

I have a client-server application - wherein the server is essentially an ASP .NET web application and the distributed clients are desktop applications. The clients need to receive some data from the server - when there is new data for the client. Right now, the way this is done is - the client keeps querying a web service every x minut...

What is a good implementation of a peer to peer chat program with a server for assigning connections in c++?

I've been interested in creating a proof of concept chat program for a while using C++. I have given the idea a lot of thought and even wrote down the beginnings of how I would design the system, but I have hit a barrier in my thinking when it comes to the implementation. I want to know what an implementation of a peer to peer chat clie...

How does the Half-Life 2 multiplayer protocol work?

I was wondering how the Half-Life 2 multiplayer protocol works in mods like Counter-Strike: Source or Day Of Defeat: Source. I believe that they use some kind of obfuscation and proprietary compression algorithm. I would like to know how different kinds of messages are encoded in a packet. ...

Do you send objects over HTTP post? And how?

I'm just getting started with some basic distributed apps which involve native apps on various platforms interfacing with a centralized web server. My first instinct is to send data to the server by having the client app send an HTTP POST with a serialized version of the data, but I'm a little unsure how I will handle the impedance misma...

What qualifies as maintenance vs. adding new features?

Where should the line be drawn between maintenance and new features? The Oxford English Dictionary defines maintenance as: (7.a) The action of keeping something in working order, in repair, etc.; the keeping up of a building, institution, body of troops, etc., by providing means for equipment, etc.; the state or fact of being so kep...

How can I send Javascript events back to Rails to process?

If I have user interactions in my Javascript layer, can I have Javascript actions trigger Rails controller actions and pass data from Javascript to those Rails methods? ...

Calculating the bandwidth between a client and the server?

I have an app that calls my ASP.NET page on my server, every 30 seconds. I want to use this for two purposes: Graph the uptime of my client Graph the average bandwidth from my client to the server What is the best way to calculate the bandwidth (in bytes per second) from the client to the server? I assume that I record the time, ca...

How to extract information from client/server communication with no documentation?

What are methods for undocumented client/server communication to be captured and analyzed for information you want and then have your program looking for this information in real time? For example, programs that look at online game client/server communication and get information and use it to do things like show location on a 3rd party m...

Bidirectional Client Server Architecture/Implementation

I have a system in which I need bidirectional communication betwen the client and the server. In some instances the client needs to initiate communication with the server to ask a question, query status, get some data, etc. {We have an AI system that performs repetiative tasks, monitoring, report generation, alerting, etc. and clients a...

Pattern for a back off mechanism in a client server system

I have a system which needs to send requests to an external system, whenever a user does search on my system. If the external system is down or is taking an unusually long time to answer, I would like my system to "back off" for a while. Instead of trying to make more requests to the external system, I want to just let the user of my s...

Most scalable web stack for high performance Flash/Flex/AIR app?

I am in the planning phase of a new multi-user client/server app using Flash via Flex and AIR. I am trying to decide which web platform/stack is the best suited for this? I have used RoR in the past, but as i understand, RoR is single-threaded, and is therefore not the ideal choice for handling potentially thousands of simultaneous req...

Robust unidirectional messages with Indy

I have a client application that should send notify messages to an optional server application. The client should not be influenced by whether the server appliction exists or not. It should try to connect to the server application and send the notify message and in case of errors it should just silently ignore all errors and continue wor...

video storage

I am working on an .net client server application, a new requirement is to allow user upload/copy videos into the system, there will be about 50 videos (500 MB each) per year. The application stores data in SQL 2005, but obviously storing the half GB video in SQL server is not great idea. Any suggestion on how to manage the upload/copy a...

Axis2 on server with different clients

Is it possible to run axis2 on the server and the clients sending the soap messages not use axis? This uses an in-out process. If so, have you seen any issues from doing this? ...

Authentification and security model in client/server aplications

I'm developing custom client/server application that requires client to log in with their username and password. The user accounts are not related to Windows/AD accounts in any way. After login, client application will request other services from server system. My question is what is the best way to implement this? What kind of archite...