I like this a lot Thanks! Also, build 718+, the "ProtocolDecoder" is a bit different.
|
Made this for a 562, though it can be used for any revision that uses the new cache system (414 and up). Not sure if it will work for rs3 though.
Direct Download
I like this a lot Thanks! Also, build 718+, the "ProtocolDecoder" is a bit different.
Nice release.
nice
JS5 has indeed changed in RS3. I have no idea what exact revision though. One change was somewhere before 793 (that's when I started so I have no idea how far back the change went) and in 805.
By the way, you might want to either consider placing the variables completely at the bottom or move them to the top. They shouldn't really be inbetween methods
What you're doing here also isn't really efficient. You create a private field, a list, which contains the requests. Request seem only added inside that method, so you could either 1) instantly encode the requests (as that's what you are basically doing), or 2) create a worker which processes all sessions' file requests. This way it's a little bit redundantCode:while (!requests.isEmpty()) { Request request = requests.removeFirst(); channel.write(FileServer.serve(channel, request.getIdx(), request.getFile())); }
Nice release altogether.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |