client-server

Simple Asynchronous Multi-Threaded HTTP request library for C++

I'll be quick and honest: I'm currently trying to write a client/server for an online game. Since I'm poor and limited on resources, I'll be testing the bare basics of the server using a PHP backend, with the eventual goal being to rebuild the server end in C++. I'm looking for a C++ library for Windows (XP and Vista preferably) that wi...

Server asking the Client for information?

In a client-server system, is it considered good architecture for a server method to "ask the client" for more information? If so, what's the best way to design such a scenario? Is there a "pattern" for this? For example, suppose the end user selects a set of records they want to delete in the client UI, then the client makes a "delet...

Response, Result, Reply, which is best?

I'm refactoring some client-server code and it uses the terms Response, Result & Reply for the same thing (an answer from the server). And although its not really that important it's become hard to guess which word to use while writing new code, so I'd like to unify the three terms into one and do the appropriate refactoring, but I'm not...

Do you know a good cache technology which can be used in .net to share data between a server and many client ?

I'm trying to adress the following issue: I have a server side .net application holding a Dictionary of PONO: the cache. I have many client side .net User interfaces which can query some of these PONO, either by using the key or by asking the server to filter only PONO with a specific attribute value: the clients Edit: Clients are C#...

Many threads or as few threads as possible?

As a side project I'm currently writing a server for an age-old game I used to play. I'm trying to make the server as loosely coupled as possible, but I am wondering what would be a good design decision for multithreading. Currently I have the following sequence of actions: Startup (creates) -> Server (listens for clients, creates) ->...

Why shouldn't I run my non-web server software on port 80?

Considering there are so many draconian firewalls in the world, is there any reason I shouldn't run server software on port 80 to guarantee greatest possible accessibility? It seems that the most common firewall exception is to allow outbound connections on port 80. I understand that any sort of packet inspection would still block my non...

.NET Remoting performance degradation when returning custom datasets

Hello, During development of client-server system using .NET Remoting (.NET 2.0) for communications I found extremely weird behavior if my remoting objects return custom datasets. For some reason it takes from 0.5 to 4 seconds for remoting infrastructure to process an empty dataset instance on the client side, if I'm using TCP channel w...

What is the best way to implement a cross-platform, multi-threaded server in C/C++?

Part of the development team I work with has been given the challenge of writing a server for integration with our product. We have some low-level sensor devices that provide a C SDK, and we want to share them over a network for use by people collecting data. Sounds simple, right? Someone would connect a sensor device to their machine in...

Cocoa client/server application

Is there a way in Cocoa that is currently considered best practice for creating a multi-tier or client server application? I'm an experienced web developer and I really love Python. I'm new to Cocoa though. The application I'm toying with writing is a patient management system for a large hospital. The system is expected to store huge a...

Using POSIX message queues instead of TCP sockets - how to establish "connection"?

I have client and server programs which now communicate via TCP. I'm trying out using POSIX message queues instead (in cases where the client and server are on the same machine, of course). My hope is that it will improve performance (specifically via reduced latency). I've worked out most of it, but am not sure about one thing: how t...

Client-server synchronization pattern / algorithm?

I have a feeling that there must be client-server synchronization patterns out there. But i totally failed to google up one. Situation is quite simple - server is the central node, that multiple clients connect to and manipulate same data. Data can be split in atoms, in case of conflict, whatever is on server, has priority (to avoid get...

Fatal errors in live servers

I'm writing some client/server software and I'm facing the following design issue. Normally, I use a VERIFY macro very liberally - if something is wrong in an user's machine, I want the software to fail and log the error so it can be fixed. I was never a fan of ignoring any kind of errors. However, I'm now writing a server. If the serve...

Are AS (with EJBs) the only way for JEE client/server communication?

Imagine a Java client/server ERP application serving up to 100 concurrent users, both web and swing clients. For persistence we can use Persistence API and Hibernate. But when it comes to client/server communication, do we really have an alternative to using an AS with EJBs to keep down the programming costs of remote communication? It...

Java SSL socket based client/server application

For two way verification is it necessary to import certicate from both sides? ...

Anything wrong with moving CLI validation/logic server-side?

I have a client/server application. One of the clients is a CLI. The CLI performs some basic validation then makes SOAP requests to a server. The response is interpreted and relevant information presented to the user. Every command involved a request to a web service. Every time services are modified server-side, a new CLI needs to ...

MMORPG protocol encryption

Anyone know what the trend is with MMORPG developers encryption their client/server protocols these days? The pro's and con's are as follows. Encrypting protocol: protects trade secrets regarding client/server protocol to a degree? Botting isn't stopped, it is only changed because people will create bots which read screen states and ...

Best Java supported server/client protocol?

I'm in the process of writing a client/server application which should work message based. I would like re-use as much as possible instead of writing another implementation and curious what others are using. Features the library should offer: client and server side functionality should work message based support multi-threading should...

Client - Server: If the clients announce their presence to the server, and then the server takes over, is it still client server, or is it P2P?

Greetings readers! So I am trying to develop a client server system.. Since I have not designed a client server system before, I thought that I would post a question and see what the experts here have to say. Requirements: .NET 3.5 WCF minimum of 2 computers, Master and Slave. The use case is a testing environment, where the slave run...

Measuring network traffic with Indy

Hello alltogether, I'm using a TIdTCPCmdServer to handle all communication with client applications. I would like my server to log all kind of stuff including network traffic. Is there any easy or clever way to see how much bytes the TCPCmdServer actually received and sent? I can only think of code like ASender.SendReply; Inc (FTraffic...

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()); } ...