server-client

Can someone help me speed up my netcode in Java?

Okay, So I'm working on a game (like not even alpha yet) and it's suppose to be a 1 on 1 fighting game where one person hosts the server and the other one connects. But right now the code is too laggy to do anything with. Can someone take a look at it and tell me how to speed it up? PS: I'm also using the Slick2D lib. Server: import ja...

UDP socket problem.

I'm writing a multiplayer game (obviously using UDP sockets. note: using winsock 2.2). The server code reads something like this: while(run) { select(0, &readSockets, NULL, NULL, &t) if(FD_ISSET(serverSocket, &readSockets)) { printf("%s\n","Data receieved"); //recvfrom over here } FD_SET(serverSocket,...

Suggestion for getting data from a web server?

I have a web server which contains a list of "interesting locations". These are "hard coded" on the web server, and maintained from an administrator on the server-side. Users can't add or remove anything. From within my app, I want to make a button "fetch locations", and the app should then contact the web server and ask for that "inter...

postgresql and firewall

I will be building a server/client software on Windows, where many machines need to communicate with a Postresql database running on the server. This is C++ software so I will use libpq to connect to the database. If I do this, will there be issues with the firewall? I'd like to make configuration as easy as possible and not have us...

Self modifying hash encryption algorithm

I am looking for an algorithm to change it's keys every period and can still be deciphered. Basically I am looking for a way to maintain a secured link between mobile clients and a stationary server in such a way that even if you intercepted the hash or even the authentication credentials themselves they would change on both sides every ...

How Can I transfer data through internet from client to server using .NET?

I am developing a server client application, where Client will send a huge amount of data to server through internet. However I have done some asynchronous socket programing before. Can I use same code here ? ...

Dialup modem transmission protocols and reates (client and server)

Hello, Does anybody know why when connecting two dial-up modems the maximum protocol you can use to stablish the communication is V.34 -33.6K? I've read that you can connect with the server modems of the ISP using V.92 or V.90 and I would like to know if there is any explanation to this. Thanks in advance. ...

Preventing concurrent data modification in Web based app

Hi, I am building a web app in Silverlight which allows users to view and edit a database. In order to prevent multiple users from editing the same data, I was thinking of implementing a lock and key mechanism, so that other users are made to wait when one particular user is editing the data. Is there any way in which we can have variabl...

How efficient BSD sockets to writew server client application on iphone?

Hi, I am creating server-client application for iPhone. I want to communicate between two application in same network. For this functionality i am planning to use sockets. How much efficient BSD sockets to use with iphone?? Is there any option available to implement same functionality? Thanks, Jim. ...

server client iphone

hi, i am building a map project and i want to save my annotations to the web and download them anytime i want. What's the best way to do that??? ...

server client iphone with json

I am trying to make a server client app for iphone and I am using json. I want to load and store some text and some images to my sql server. I was able to get the text from my server but not the images and I have not figured out how to post things to my server.Am I in the right track here or should I start using xml. Can anybody help me?...

How to do a non-waiting write on a named pipe (c#) ?

Hello, I'm using .net 3.5 named pipes and my server side is : serverPipeStream = new NamedPipeServerStream("myPipe", PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous); When I write some data with, say, BinaryWriter, the write() call itself doesn't return until the client side has called a read() on its Name...

Which is best temp. linking method of records which are to be sent to a server for insertion in DB

Hi, [SCENARIO] The scenario is, there is a requirement to send multiple records through XML file to the server, for insertion in the database. These records consists of multiple master and detail tables data linked together through primary and foreign keys. Now the client cannot fill the Primary key and foreign key columns/data in thos...

online game best-practice

I'm developing a django-based MMO, and I'm wondering what would be the best way for server-client communication. The solutions I found are: periodical AJAX calls keeping a connection alive and sending data through it Later edit: This would consist in "you have a message", "user x attacked you", "your transport to x has arrived" and ...

Singleton database.php

If I have a database.php class (singleton) which reads and writes information for users of my web application, what happens when simultaneous requests for the same database function is called? Is it possible that the database class will return the wrong information to other users accessing the same function at the same time? What othe...

Is JMS suitable for an online game?

I'd like to throw together a small game and put it online. It would be multiplayer (ideally it would be MMO, but it's a side project, so I'll settle for MO hehe), the content is rather unimportant. I'm planning on writing the game (server and client) in Java. I'm considering options I have for getting information around reliably. Will J...

asihttprequest: post problems on the iphone

I am trying to to establish a connection between my app and an internet service and I am using asihttprequest but I'm having a small problem. Everything works great when I am on WiFi but when I turn it off and use GPRS(EDGE) or 3G nothing seems to work. Should I change something. Here is some of my code [self setRequest:[ASIFormDataRequ...

C# byte streams through TCP

I'm a Jr. Engineer hoping to seek some advice from all of the experienced people in here in regards to how to approach this. I've been assigned a project to create a server/client application that does byte streaming through TCP. Our company deals with 2-way radios with GPS with a dispatch software and we would like to make a server/cl...

Java get thread created by calling main

Hello! I have a client server application and for testing purposes I need to start the client in a test method by calling Client.main(); That creates some new thread. Now I need to wait until that thread is completed before performing assertions in my test. How do I know when this happens? Alternatively, how do I know, which thread wa...