client-server

Share application specific data types with server and client

Hi all, I have to create a server(java) - client(c++) system, both server and client will have to work with objects (data types) wich are the same for the client and for the server, for example a car object will be created on the client side and then send to the server where aditional calculations will be done on the car object. What i ...

How do you compute the client/server timegap?

I'm developing a client/server software, and I'm searching the best way to keep my client clocks in sync with the server clock. Of course, I can't use NTP because I don't want to touch the system clock. I'm just trying to compute a timegap so that I can add it to every single datetime received from the server to convert it into a 'local...

Best framework for targetting a wide range of mobile devices

I'm trying to build a mobile application on a client-server model where clients are people's mobile devices and the server is a PC - all connecting over bluetooth. I'm expecting the client to be very thin - just enough to establish communications, display some text, and relay user input. What's the best framework to develop in? I want ...

Indy Write Buffering / Efficient TCP communication

I know, I'm asking a lot of questions...but as a new delphi developer I keep falling over all these questions :) This one deals with TCP communication using indy 10. To make communication efficient, I code a client operation request as a single byte (in most scenarios followed by other data bytes of course, but in this case only one sin...

How to measure the response time between a server and a client that communicate using the UDP protocol ?

The aim of the test is to check the shape of the network response time between two hosts (client and server). Network response = the round trip time it takes to send a packet of data and receive it back. I am using the UDP protocol. How could I compute the response time ? I could just subtract TimeOfClientRequest - TimeOfClientResponseRe...

Load test a .NET desktop client

I need to automate load tests on a .NET desktop application using an automated script, preferably one that is able to record mouse clicks and keyboard entries. I will have about 10 desktops at my disposal and I want to simulate up to 10 users on each box (as an alternative to installing 100 boxes). Are there any tools that can be used...

Syncing objects between two disparate systems, best approach?

I am working on syncing two business objects between an iPhone and a Web site using an XML-based payload and would love to solicit some ideas for an optimal routine. The nature of this question is fairly generic though and I can see it being applicable to a variety of different systems that need to sync business objects between a web ...

What is the easiest and lightest way to make a client-server in Perl ?

It will be better if this solution is based on HTTP protocol. ...

Can a server in any case request a client for any service?

Can a server in any case request a client for any service? ...

Multi-Threaded Client-Server Web Service - Making server side data thread-safe

Hi All I am implementing a multi-threaded web service. A thread is spawned per incoming request. For each client, a session is created and each session contains a data section - say a DOM tree. Client requests will basically be get/set methods and the server will read/write the DOM. So the DOM data is per client. Now my question is, s...

Could someone post a simple C or C++ TCP server and client example?

I need to quickly implement a very small C or C++ TCP server/client solution. This is simply to transfer literally an array of bytes from one computer to another - doesn't need to be scalable / over-complicated. The simpler the better. Quick and dirty if you can. I tried to use the code from this tutorial, but I couldn't get it to build...

How do I send and receive an integer array from client to server in Java socket programming?

I'm having a problem sending a job (an integer array) from client to server in two different packages over a socket connection. Any ideas please? I can explain further if my question is not clear enough. ...

WCF: How should I maintain contract classes in client and server?

I am working on a WCF application with a server and a client (naturally). In server project, I defined the classes with contract attributes. Now when the server is ready, I added the service reference and it created the proxy for me. I used it and it did work fine. The question I want to ask is, is it OK if I create a common DLL which ...

distributed application model, server and multiple clients (client can run on server)

I've got a system i'm designing where we're using 4 specialized PC's we manufacture in house that have 16 serial ports (db-9 RS232) I need to communicate with 64 units near simultaneously (4x16) and manage the communications. Here's the model I came up with and i'm soliciting feedback Server: Runs on one system and coordinates client a...

One complex query vs Multiple simple queries

What is actually better? Having classes with complex queries responsible to load for instance nested objects? Or classes with simple queries responsible to load simple objects? With complex queries you have to go less to database but the class will have more responsibility. Or simple queries where you will need to go more to database. ...

DDD and Client/Server apps

I was wondering if any of you had successfully implemented DDD in a Client/Server app and would like to share some experiences. We are currently working on a smart client in Flex and a backend in Java. On the server we have a service layer exposed to the client that offers CRUD operations amongst some other service methods. I understand...

Client/Server both give up after 1 connection

I'm writing a client/server (as many of you probably already know!). The server is going to be sending data to the client. However, the client can connect once and after that it never attempts to connect again once the connection has been terminated. Similarly, once the server has sent it's message it will ignore future attempts to conne...

What is the difference between a web application and a client/server application?

I took this from another question I had. Under appropriate uses for sqlite it has: Situations Where SQLite Works Well •Websites SQLite usually will work great as the database engine for low to medium traffic websites (which is to say, 99.9% of all websites). The amount of web traffic that SQLite can handle depends,...

Process the file before uploading it

I got a form with SWFUpload. Files uploaded to the server are converted server-side (video being compressed, images being resized etc) Question is - can i delegate some of the functionality to client-side (like image resizing), to save some bandwidth for user. ...

In the webservices model are there still basically 3 tiers as the client-server model had?

The basic client-server model (even when implemented using questionable interfaces) had a presentation layer, a business layer, and a data layer. Are the directory and discovery methods using webservices models considered a entirely new layer? I would argue that the discovery layer is actually just expanding the role of the data layer ...