client-server

How to let the server inform game clients about other nearby visible players in an efficient way?

I'm working on a multiplayer flash game. The server informs each client what other players are near the player. To do this the server has to check which clients are near each other continuously. The following is what I am using at this moment, as a temporary solution: private function checkVisibilities() { foreach ($this->socketClie...

Communicate to Apache Server

Hi, Does any one know, how to communicate to Apache server from client side using Win32 or C#. and can i get the control to execute the process at server? if so how to do?. how to receive file sent by apache?. Please help me... Thanks ...

Balance between fast and secure: time sensitive password encryption algorithm

I'm working on a client<>server multiplayer game. The authentication is done on the same server as all game logic etc. This means that my authentication password encryption algorithm can't take too much calculation time as it would delay all the other required actions. If many people would logon at the same time that would cause a notice...

How to solve state-stateless in a client-server application?

I've read some books on creating stateless websites, I've read some about stateful client applications, but a lot of complexity comes along when you have to combine both. We have a Flex application that needs to persist data to a database via .NET services. Things to keep in mind are: - Concurrency (optimistic/pessimistic) - Performance:...

Howto take latency differences into consideration when verifying location differences with timestamps (anti-cheating)?

When you have a multiplayer game where the server is receiving movement (location) information from the client, you want to verify this information as an anti-cheating measure. This can be done like this: maxPlayerSpeed = 300; // = 300 pixels every 1 second if ((1000 / (getTime() - oldTimestamp) * (newPosX - oldPosX)) > maxPlayerSpeed)...

Options for Client Server Communication in Android

I'm currently in the research phase of my dissertation project. My project is a ticket booking system for a mobile device and I have chosen to target Android. I anticipate the need for a client/server architecture with a central server, and so am currently looking at how Android could communicate with such a server. The server would gr...

Can I use the Advanced Message Queuing Protocol (AMQP)?

We develop system with client-server architecture. But in our case client must communicate with server in off-line file mode. Is it correct to use AMQP in this case? ...

.NET Client/Server Scaleability & Asynchronous I/O - Excess Thread Issues

I have a pretty simple question which perhaps someone familiar with Server/Client design & the Asynchronous I/O paradigm of .NET could answer quickly... I'm writing a server-side application which is designed to run on relatively non-sophisticated hardware (read: not-so-modern, average office desktop PCs), but accommodate a reasonably l...

How can I use a threadpool to process each connection in a new thread

I have a simple server that waits for a client to connect, reads the incoming stream, and sends a message back. What I would like to do is have every connection handled by a separate thread. This is my first time working with sockets and threads in C#, and most of the examples I have found are really confusing, so any help or simple ex...

Measure amount of data sent from the client to the server in aspx page

What is the most efficient and accurate way to determine how much data is sent to the server when an aspx page is submitted to the server (in MB)? ...

Client-Server Data Encryption and Protocol Design

Hello, I'm writing a client-server application to be used in a computer lab and act as a service (without running as a service). I have a console application calling the native function "ShowWindow"/SW_HIDE using the console's HWND object -- this gives it what I am wanting here. The server/client is working, I've sent the message "Hello...

ASP vs. ASP.NET ( Thin client vs. thick client )

I'm troubled by this question for a long time now. I work in the little company in Eastern Europe. We work primarily for local clients, web apps, mostly b2b and b2c-s. Our internet infrastructure is not a very good, so we often have problems with local isp-s and hosts that are stationed in companies who have information systems that we b...

Help required: zip files streaming

Hi all, i have problem in sending zip file in network.. all other formats i am able to send except .zip.. i tried a lot i dont no how to do this.. the code i have written at client side to upload file, this is suggested by microsoft here is the link i am able to create zip file, if i try to open it says corrupted..size of the file al...

How to make a server send a processed data back to the invoking iPhone?

I am sorry if the title is unclear. Allow me to elaborate further. Firstly, I have an application on an iPhone that will allow the user to upload a data to server. We simply use php to allow the user to upload the data. Secondly, the server will process this data and then return the processed data back to this iPhone. This part is the ...

Java client/server application with sockets?

I'm writing a java package that will be called by another language (matlab). If my matlab process ends, I want the Java process to keep running. Whenever matlab starts again, it should be able to communicate with the existing running process. So I think I need to have the Java application communicating through sockets in a client/serv...

Pitfalls of true client-server architecture in web applications ?

I've been researching on building web applications in a true client-server fashion. This type of architecture basically consists of : A thin server, merely a headless api that : handles security concerns processes core business logic provides data persistence A fat client, with a desktop-like design that : caches data, and ...

Secured Client-Side script

Hello there I have got a particular requirement where some critical algorithms have to be handled in the client-side script and it got to be secured. Using javascript will just expose the algorithm. I am currently evaluating ways to secure the algorithm on the client script. Appreciate any suggestions and alternative approaches. One op...

Client Server socket security

Assuming we have a server S and a few Clients (C) and whenever a client update a server, an internal database on the server is updated and replicated to the other clients. This is all done using sockets in an intranet environment. I believe that an attacker can fairly easily sniff this plain text traffic. My colleagues believe I am over...

Java server-client | server wont receive second request

I'm trying to write a client and time server for an assignment and I'm having trouble getting the server to receive the second request from the client. The first request goes through fine without a hitch. then it just stalls. I'm actually pretty lost in this whole thing and rather uncomfortable with java still, so I have no idea what I'm...

How to restrict what files a desktop app can download from an online server

The closest example I can think of is iTunes. I'm thinking about a system where a server stores loads of files, and each user only has access to those they have paid for. Using a desktop app, they can download these to their local PC where they are stored as regular files. How might one approach this? I can see a couple of possible opti...