If I were a UDP socket... | |
JavaGuy - Student ![]() |
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 |
Smilykrazy - Retired ![]() |
*has laurengitis* *cant spell it* ![]() _______________ RIP MOM 06/29/58-07/31/08 Married to Koyi Donita 4/30/11 |
Fizz of Belouve - Student ![]() |
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!" |
Smilykrazy - Retired ![]() |
*still speechless* ![]() _______________ RIP MOM 06/29/58-07/31/08 Married to Koyi Donita 4/30/11 |
Fizz of Belouve - Student ![]() |
still 531 _______________ One of the Belouve boys, founder of the mighty FiZZsters Midbie council #20 - Fizz - #1933 - Jan '03 - Aug '04 "Renfield, you idiot!" |
Smilykrazy - Retired ![]() |
*speechless* ![]() _______________ RIP MOM 06/29/58-07/31/08 Married to Koyi Donita 4/30/11 |
Fizz of Belouve - Student ![]() |
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!" |
Gentleman Loser - Ex-Student ![]() |
![]() 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... ![]() _______________ "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. |
Muad'dib - Student ![]() |
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 ![]() ![]() ![]() ![]() ![]() _______________ "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! |
Fizz of Belouve - Student ![]() |
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!" |
JavaGuy - Student ![]() |
Mystery solved! I wasn't allocating a big enough buffer. ![]() _______________ My signature is only one line. You're welcome. |
JavaGuy - Student ![]() |
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. |
Fizz of Belouve - Student ![]() |
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!" |
DJ Sith - Jedi Council ![]() |
It makes my day when stuff gets depreciated. ![]() _______________ My car is made of Nerf. |
JavaGuy - Student ![]() |
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. |
Fizz of Belouve - Student ![]() |
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!" |
DJ Sith - Jedi Council ![]() |
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. |
JavaGuy - Student ![]() |
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. |
Aron - Retired ![]() |
what is supposed to be returned in the status read? What language/platform is it supposed to be coded in? |
JavaGuy - Student ![]() |
/bump I'm serious guys. This isn't an academic question. ![]() _______________ My signature is only one line. You're welcome. |
Login and add your comment! |