Tuesday Project

Post Reply
Posts: 10
Joined: Fri Sep 24, 2010 1:26 pm

Tuesday Project

Post by Amusesmile » Thu Oct 28, 2010 11:15 pm

Hey y'all,

A few of us were talking about how to get the project for tuesday started- specifically how to get data being fed into the server to affect something else- processing for example. I'm attaching a working skeleton of that in case anyone is having trouble. To make it work, run DoStuff.java from eclipse or whatever- this should open up a java applet and a DatagramServer. Then from the command line or terminal, javac the DatagramClient.java file. Then actually run the DatagramClient with arguments like this:

[ java DatagramClient "" "1 3 2 5 7 8" ] <----without the brackets of course

The first argumet "" is the ip address you want the information to go to.
The second argument "1 3 2 5 7 8" is what information you want to send- in the case of my program, a string of numbers which can be any length separated by spaces.

After you send that, the DatagramServer should respond. ONLY after you send the information, click around within the DoStuff applet to draw pretty ratios randomly selected from the string "1 3 2 5 7 8" or other numbers you input.

Hope that's helpful to someone, somewhere.

[The extension tar has been deactivated and can no longer be displayed.]

Posts: 15
Joined: Sat Sep 25, 2010 7:08 pm

Re: Tuesday Project

Post by mhetrick » Mon Nov 01, 2010 12:02 am

Here's my project:

Check the README for info.

Post Reply