Commit Graph

11 Commits

Author SHA1 Message Date
Michael Bayne 4c39fb3fb8 Log our low-level stack traces when we get them because I've seen at least
one instance of the nested exception failing to log anything useful when
it is reported at a higher level and we're seeing failures in the
low-level streamable decoding code which need debugging.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2087 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-23 00:40:39 +00:00
Michael Bayne 3b86a9c669 Support implicit Object[] handling as well as Object handling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2081 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-21 00:44:25 +00:00
Michael Bayne f04e98f481 We may be passing Object in directly in which case we have no super class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2080 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-21 00:44:03 +00:00
Michael Bayne 00baff9000 Handle Object fields by using readObject() and writeObject() to serialize
them assuming they'll contain either a primitive type or an instance of
Streamable.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2076 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-20 23:27:52 +00:00
Michael Bayne a63d7446dd It turns out that we can make protected and private fields accessible to
the object serialization code which means that we can automatically
serialize said data members. Hooray!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2075 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-20 23:27:12 +00:00
Michael Bayne fd9a06a388 We don't need a SocketChannel. A ReadableByteChannel will suffice.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2048 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-10 19:33:22 +00:00
Michael Bayne cf578a11b5 Log the shit out of everything if we come across an invalid class code in
the object input stream.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2012 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-02 22:10:10 +00:00
Michael Bayne d6b84eb0b8 Rewritten to support I/O via channels.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1957 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-18 18:51:33 +00:00
Michael Bayne 65bc9f7eff Return number of bytes written when writing a frame.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1893 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 02:16:46 +00:00
Michael Bayne 14a313486b Documentation repairs.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1842 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 18:49:51 +00:00
Michael Bayne 2330afc3cd New object streaming code is born!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1605 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-23 05:42:34 +00:00