« first day (1299 days earlier)      last day (2176 days later) » 

5:03 PM
hello
anyone online?
 
@MarfGamer Perhaps, but I wouldn't count on it.
 
@Majora320 Quick question, have you used netty before?
 
nope, sorry
 
Dang
 
what's your problem?
 
5:09 PM
I am trying to make a simple system where it resends a packet with a decreasing value then stops when the first packet from the server is received
 
this is node.js right?
 
Java
 
ah
i might be able to help you
 
I have some working code to do it actually, I just can't get it moved over to hte full impl without breaking it
 
in what way does it 'break'?
 
5:14 PM
One sec I'm uploading code to gist.github
 
Ignore address, port, and decrease at the top. That address is my mobile phone local address which has the official server built into it
 
so i can ddos it?
lol jk
 
I love it when little kids do that
 
lol @Majora320
 
5:16 PM
It's even better when they don't know the difference between dos and ddos
 
dos = denial of service ddos = distributed dos
 
yes
 
@Majora320 right
 
The code in the gist I sent you works
But I am having a lot of trouble moving it over
 
how so?
 
5:18 PM
Because in the full implementation the handle has it's own class to handle special data, so I can't have the BooleanContainer in the same place
If I try to store it in both the RakNetClientHandler, the special handler class, seems to cache it or something and it won't update when a packet is received
But even then it seems like packets aren't receiving at all
The RakNetClientHandler should be on it's own thread while the while loop is continously sending data
Or you would think it is as that seems to be the case with the gist I have
I'm trying to get netty to keep sending packets until a response is received, it would be nice if Netty had that built in
I think it does but I just don't know how to do it though
 
so you want a separate class for the handler but you need to share state between both?
 
yes
 
well you could use public fields in the handler class
then the pasted class would assign the handler instance to a var
and check that
 
I am trying that now
 
kk
 
5:26 PM
I am a public boolean called status in the handler
The first packet when received, it is set to false
It doesn't seem to help though
Still no response
 
hmm
 
I'm starting to get desperate, there are so many things I need done that rely on this
 
is status volatile (or synchronized if its still a booleancontainer)?
 
no
I'll make it volatile
 
kk
 
5:28 PM
no response still
 
what do you mean by no response exactly?
 
I'm not getting any packets from the clients
*servers
 
are you not getting them, or are they just not showing up as received?
 
I am not getting them
wait
I'll refresh wireshark real quick
 
yeah, that seems like a server problem then...
 
5:32 PM
Nothing is showing up in Wireshark
It's not a server problem I know it is a client problem
I'm implementing an existing protocol called RakNet
 
so 'Connected' is not printing?
 
Nothing is showing up in my console or netty
RakNet uses UDP and the first packet in login is used to determine the MTU between the server and client for later use if a packet is too big and needs to be split
 
did you add the handler class via the Bootstrap's handler method?
 
yes
 
i cant think of any reason why packets aren't receiving then...
 
5:35 PM
Here is the connect method
That is the handler class
client.handleRaw and other methods like that simply send the packet to the client once extra data has been handled accordingly in the handler, you can ignore those
 
try adding a debugging print statement in the handler's messageRecieved method, and see if it prints (the class is actually recieving packets)
 
I did just now
Nothin
 
that must be a server error then, if the client isnt recieving packets...
 
Not a server error I promise you
RakNet is proven to work and has been used by many games
I know it's an error on my part
I am porting RakNet from C++ to Java, or at least it's protocol
 
do you ever set the status from the messageRevieved method in the client?
 
5:41 PM
yes
 
i dont see that in the handler class...
(that you pasted)
in RakNetClientHandler
 
I updated it
 
can you paste updated?
 
at paste.ofcode.org/xs6biCWuPrrzXFeTQkz5Kb it seems you bind to localhost port 0...
 
5:46 PM
Netty finds it's own
If you set it to 0 it finds the next available one, it works.
 
ok...
i really dont know
does the original one class one still work?
 
yes
 
hmm
 
It also does the bind("localhost", 0);
 
look at some of the options set, and the order in which you set them maybe
 
 
2 hours later…
7:45 PM
...
 
,,,
 
...
 
, , ,
 
...
 
,,,
 
7:56 PM
...
 
lol enough
 
nooooo => ... ... ... ...
 
9:10 PM
k
 
9:33 PM
@Majora320 I found the problem, apparently when you bind to "localhost" and then port 0 it freezes everything up for the handler. This does not happen if it is bound to port 0 only without the "localhost" part, which is very weird. But now everything works except for one of the packets which requires the local address of the client. This can be fixed easily. I'll submit an issue to the netty github sometime maybe.
 
@MarfGamer So I was right - it was the localhost:0! :P
 
Well the thing was is that on my server, I do use "localhost":0 and it works fine because of how it works
*because of how it was programmed to handle clients, it doesn't need to resend packets. If a client doesn't respond and times out the server just goes: "tough luck"
@Majora320 Anyways, thanks for the help, without you and the others in the chatroom and I would have never been able to fix this issue :)
 
Welcome! :3
 
When I finish it up and commit, I'll have a release labeled version v1.1, you can try it out at github.com/MarfGamer/JRakNet
I should have it out by 9:00 PM central tonight if all goes well
 
Cool! :D
 
9:40 PM
I'll also try to have examples to create a server and to connect to one using a client
I'm not joking I would've have v1.1 released 3 days ago if it weren't for that pesky MTU
 
9:54 PM
omg RakNetServer broke and I don't know why
It'll do this and I will have to undo a crap ton of code to get it working again, I don't even know what I changed
 
how did it break?
 
Nothing is being received or sent
I think I know the problem though hold on
Yeah it's working again
I removed something that shorted the length of a packet so it would be too big for the client to accept it
 
10:22 PM
Got exceptions working, currently working on the RakNetClientTest class and the UtilitiesTest class. I will then release v1.1 on github! :D
 
11:11 PM
@Majora320 This is the last time I will ping you, here is the first official release for JRakNet :) github.com/MarfGamer/JRakNet/releases/tag/v1.1
 
11:43 PM
@MarfGamer Cool! I'll definitely download & check it out, and maybe send you a pull request :>
 

« first day (1299 days earlier)      last day (2176 days later) »