Controlling Arduino Through Wifi

Looking for some advice here...

I have an Arduino Duemillenove and an AsyncLabs WiShield v1.0 and I'm looking for a way to communicate back and forth between the PC and the Arduino.
The end goal is to hook up a game controller to the pc, which will then send the information on to the arduino through the wifi connection. I'd also like for
the Arduino to send back information from various sensors.

I've had a look through the asynclabs examples, but I'm not sure what the best way to move forward is.

I'm assuming I won't be able to do this with the WiServer add on, however after that I have no clue how to proceed.
I'm new to wifi networking so any help will be appreciated.

Here is a link to the shield documentation:
http://asynclabs.com/wiki/index.php?title=AsyncLabsWiki

I'm assuming I won't be able to do this with the WiServer add on

Why? What WiServer add on?

WiServer is a class in the AsyncLabs wiShield library. It basically just simplifies the process of turning the arduino into web server, or a web client. I assumed I wouldn't be able to use it because
It was more specialized for serving a a webpage or sending data to a webpage than it was for point to point communication.

I think what I'm going to end up doing is communicating with the Arduino using Processing, and sending messages socket to socket.

I'm Using the following arduino and processing code to make a connection between the pc and the arduino.
The arduino connects, and sends a message ("Ready"), and Then processing sends a message back ("Message Recieved").

However, I am unsure how to get the arduino to continue sending new messages. I don't see where in the example code the message actually gets sent.
I believe it has something to do with the variable twitter in webClient.c, but I can't find where that variable is defined.

Also, I am not sure how to get what processing sends back on arduino.

Just as a test, I'm trying to enter a number in processing, and have the LED on the arduino blink that number of times...

As a note, the attached processing code uses the controlP5 library processing GUI, controlP5

WifiComm.pde (1.38 KB)

WebClient.ino (1.85 KB)

webclient.c (9.02 KB)

The webclient class leaves a lot to be desired, in my opinion. In the webclient_get function, called in loop(), there is a call to init_connection. In that method, the length of the string in the global variable twitter is saved. In the senddata() method, the string in the twitter variable is sent. The senddata function is called by webclient_appcall(), which does not appear to be called anywhere.

Would it be a better idea to use a socket connection rather setting up the pc as a server and the arduiono/wishield as a client? what would you suggest doing?
At the moment, I only plan on connecting the two together, I don't need multiple arduinos connected to the same PC.

Would it be a better idea to use a socket connection rather setting up the pc as a server and the arduiono/wishield as a client?

In my opinion, no.

what would you suggest doing?

Looking at the examples provided with the WiShield library. There are server and client examples. None use the webclient library, which is a good thing.

At the moment, I only plan on connecting the two together, I don't need multiple arduinos connected to the same PC.

The number of clients is not relevant. You could have one or a thousand.