The Jedi Academy. THE Place for Jedi training.
Forums
Content
The Academy
Learn
Communicate
Personal


Forums | General Discussion
If I were a UDP socket...
Aug 25 2003 02:41am

JavaGuy
 - Student
JavaGuy
If I were a UDP socket, and I wanted to do a status read of a Jedi Outcast server, to what port would I want to connect? My understanding is that once connected I need only send four hex-FF bytes followed by "getstatus" and an EOL character, but right now I just get "connection refused" all over the place. Any techies out there have any suggestions?


_______________
My signature is only one line. You're welcome.

  Login and add your comment!  
Comments
Sep 10 2003 10:46am

Smilykrazy
 - Retired
 Smilykrazy

*has laurengitis*

*cant spell it* :D
_______________
RIP MOM 06/29/58-07/31/08 Married to Koyi Donita 4/30/11

Sep 10 2003 10:40am

Fizz of Belouve
 - Student
 Fizz of Belouve

still very 531
_______________
One of the Belouve boys, founder of the mighty FiZZsters
Midbie council #20 - Fizz - #1933 - Jan '03 - Aug '04

"Renfield, you idiot!"


Sep 10 2003 10:39am

Smilykrazy
 - Retired
 Smilykrazy

*still speechless* :P
_______________
RIP MOM 06/29/58-07/31/08 Married to Koyi Donita 4/30/11

Sep 10 2003 10:37am

Fizz of Belouve
 - Student
 Fizz of Belouve

still 531
_______________
One of the Belouve boys, founder of the mighty FiZZsters
Midbie council #20 - Fizz - #1933 - Jan '03 - Aug '04

"Renfield, you idiot!"


Sep 10 2003 10:36am

Smilykrazy
 - Retired
 Smilykrazy

*speechless* :D
_______________
RIP MOM 06/29/58-07/31/08 Married to Koyi Donita 4/30/11

Sep 08 2003 12:29pm

Fizz of Belouve
 - Student
 Fizz of Belouve

lol

http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=utf-8&q=%22jedi+outcast%22++%22UDP+port%22&btnG=Google+Search

:)
_______________
One of the Belouve boys, founder of the mighty FiZZsters
Midbie council #20 - Fizz - #1933 - Jan '03 - Aug '04

"Renfield, you idiot!"


Sep 02 2003 01:43pm

Gentleman Loser
 - Ex-Student
 Gentleman Loser

:)
lolz Muad'dib

Though for something as important as pie and pr0n, you're gonna want to use tcp to assure complete delivery of the precious cargo...
Nothing worse than a pie arriving without the crust, and porn arriving without the pie...
:D
_______________
"I am become death, the destroyer of worlds"
Bhagavad Gita
&
J. Robert Oppenheimer


This comment was edited by Gentleman Loser on Sep 02 2003 01:43pm.

Sep 02 2003 05:00am

Muad'dib
 - Student
 Muad'dib

Now, if I were a UDP socket, I would be a special "Pie and Pron" socket and would be used STRICTLY for the transfer of, well, Pie (prefferably lemon merangue ;)) and Pornography :D:cool::D Now that's a great time to be a UDP socket. :P
_______________
"It's because I love you.
No. It's because I love you"
Oh, Anakin, you're eloquence is second to none.
I AM THE OPIATE OF THE MASSES!


Aug 31 2003 05:15pm

Fizz of Belouve
 - Student
 Fizz of Belouve

glad u resolved that ;)
_______________
One of the Belouve boys, founder of the mighty FiZZsters
Midbie council #20 - Fizz - #1933 - Jan '03 - Aug '04

"Renfield, you idiot!"


Aug 31 2003 02:45am

JavaGuy
 - Student
 JavaGuy

Mystery solved!

I wasn't allocating a big enough buffer.

:eek:
_______________
My signature is only one line. You're welcome.

Aug 31 2003 12:47am

JavaGuy
 - Student
 JavaGuy

Okay, so I'm using this cool new DatagramSocket, but when I do the status read, what I get back is the "g_mDebugEmpower = ...blah blah blah" stuff, but no player list. Here's the meat of my class:

inetAddress = (InetAddress) Inet4Address.getByName(address);
socket = new DatagramSocket();
System.out.println("Connecting to " + address + " : " + port);
socket.setSoTimeout(30000);
socket.connect(inetAddress, port);
String output = "xxxxgetstatus";
byte[] outbytes = output.getBytes();
outbytes[0] = (byte)255;
outbytes[1] = (byte)255;
outbytes[2] = (byte)255;
outbytes[3] = (byte)255;

outgoing.setData(outbytes);
socket.send(outgoing);

socket.receive(incoming);
return new String(incoming.getData(),0,0,incoming.getLength());

_______________
My signature is only one line. You're welcome.

Aug 30 2003 03:02pm

Fizz of Belouve
 - Student
 Fizz of Belouve

lol ;)

I have programmed an embedded webserver in Java... lol.... that was fun... any more questions on sockets and arbitrators ? ;)
_______________
One of the Belouve boys, founder of the mighty FiZZsters
Midbie council #20 - Fizz - #1933 - Jan '03 - Aug '04

"Renfield, you idiot!"


Aug 29 2003 03:39pm

DJ Sith
 - Jedi Council
 DJ Sith

It makes my day when stuff gets depreciated. :D
_______________
My car is made of Nerf.

Aug 29 2003 03:32am

JavaGuy
 - Student
 JavaGuy

I think that's it DJ--I'm using a raw java Socket class to connect. I thought it defaulted to UDP, but apparently not. Socket has UDP capabilities, but looking over the documentation now I see that you have to use a funky constructor to make that work, and also that functionality has been deprecated and moved to something called a DatagramSocket. I'll give it a whirl. Thanks!


_______________
My signature is only one line. You're welcome.

Aug 29 2003 12:33am

Fizz of Belouve
 - Student
 Fizz of Belouve

javaguy !
I feared u were missing in action... hehe ;)

well, I always have liked UDP port 531 ;)
_______________
One of the Belouve boys, founder of the mighty FiZZsters
Midbie council #20 - Fizz - #1933 - Jan '03 - Aug '04

"Renfield, you idiot!"


Aug 28 2003 11:35pm

DJ Sith
 - Jedi Council
 DJ Sith

This may be me being a total newbie at network programming, but wouldn't connection refused imply a TCP connection?
_______________
My car is made of Nerf.

Aug 28 2003 10:07pm

JavaGuy
 - Student
 JavaGuy

The return is supposed to be a list of players currently on. I'm writing in Java--which is its own platform, for all practical purposes--but it doesn't really matter what language the client is written in since the server can't tell anyway. What I'm getting is a simple "connection refused" on all ports.

_______________
My signature is only one line. You're welcome.

Aug 27 2003 05:46am

Aron
 - Retired
 Aron

what is supposed to be returned in the status read? What language/platform is it supposed to be coded in?

Aug 27 2003 01:37am

JavaGuy
 - Student
 JavaGuy

/bump

I'm serious guys. This isn't an academic question. :D

_______________
My signature is only one line. You're welcome.

  Login and add your comment!