SilabGarza - RS Private Server  
Home Forum Play Register Store Market Highscores Mark Forums Read
Go Back   SilabGarza - RS Private Server > SilGar Media > Computers > Programming
Reload this Page RSBuffer


RSBuffer
Old
  (#1 (permalink))
I R Maggot is Offline
Member
image
 
I R Maggot's Avatar
 
Posts: 64
Cookies Given: 0
Cookies Received: 0
Time Online: 3 h 28 m
   
Default RSBuffer - 07-15-2010, 01:31 PM

Quote:
Originally Posted by blakeman8192
I decided that I'd write up for you guys a legal, more safe, and easy-to-use way of communicating via the RuneScape protocol.

It's called the RSBuffer, and it's beautiful. It takes care of encryption for you, and provides a "getDecryption()" (and encryption should you need it) method that allows you to call "nextInt()" to get the next key to decrypt incoming packet opcodes. It starts out with a very low memory footprint (128 bytes) and will increase it's own size automatically when necessary. Unlike the current "stream.java", it is legal - it isn't ripped from a deob, I wrote this from scratch. It also uses more familiar naming conventions, like "int" instead of "dword". It also returns it's own instance for every "put" method so you can have method chaining, like so:

Code:
rsBuffer.createOpcode(10).putShort(5).put(14);
Naming Convention Changes
Here are the data-type naming convention changes so you guys know how to put this into your server.


So, "writeWordBigEndianA" would be, in RSBuffer, "putLEShortA".

This took me a few hours to write up for you guys (it's 1,409 lines - 30kb - of code), so I'd appreciate some thanks of course, but I'd appreciate it more if I saw it being used in your servers. It's legal, it's safer (wont crash your server unexpectedly), it's more familiar with the data-type naming conventions, and it's faster.

It also contains way more put/get methods than the wL stream has, or even ones that the client deobs have - just in-case you guys would ever need the extra methods (adding your own packets, etc). On top of all of that, it's 100% javadoc documented.

(note 12-16-2009 I had to fix some bugs, here is revision 2)
RSBuffer Source: http://pastebin.com/f324e8e6f
RSBuffer Documentation (zip): http://uppit.com/v/QUCYPGVZ and http://www.megaupload.com/?d=RFNQ4ZSI

Good luck developing!
-Blake
If you don't know what this is, it's a legal version of the Stream class.
  
Old
  (#2 (permalink))
caliban is Offline
Senior Member
image
 
caliban's Avatar
 
Posts: 5,174
Cookies Given: 32
Cookies Received: 27
Time Online: 40 d 1 h 44 m
Clan: Butt Pirates.
   
Default 07-15-2010, 03:04 PM

Quote:
Originally Posted by I R Maggot View Post
If you don't know what this is, it's a legal version of the Stream class.
Thank you, I think I finally learned something <.<




  
adsense code2.3
Closed Thread

Bookmarks

RSBuffer

Programming




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
adsense2.6
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 11:59 PM.





Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.