Michael Bayne
0764379634
Make omgr the same type it used to be.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5444 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-14 21:39:02 +00:00
Michael Bayne
ccba68ab36
This needs to come back to make a whole bunch of Game Gardens games work.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5443 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-14 21:32:54 +00:00
Nathan Curtis
24b5b905e1
A couple of example usage fixes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5442 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-14 21:06:28 +00:00
Jamie Doornbos
077c5e8053
At Ray's suggestion, go ahead and throw an error when the wrong type is read. Use the Type(obj) cast syntax (I was unaware that this would actually throw an error). Reading objects of a basic type like Array must still use "readObject(Array) as Array" so this is still supported, though not needed for user types.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5441 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-13 17:34:55 +00:00
Jamie Doornbos
2b298aa3d5
Pass in the expected type to readObject anywhere the code would clearly convert the wrong type to null anyway
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5440 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-11 06:28:50 +00:00
Jamie Doornbos
a3cc67348e
Gah, this was part of the implementation, but in the end I took it out but missed the import
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5439 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-11 06:21:54 +00:00
Jamie Doornbos
e12ff0e9f3
Optional type checking for readObject
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5438 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-11 06:06:06 +00:00
Jamie Doornbos
a99238faf8
Fixed username member for actionscript. Serialization was completely hosed
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5437 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-11 05:17:40 +00:00
Michael Bayne
f1b1a06834
Updated services.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5436 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-10 22:46:24 +00:00
Michael Bayne
97b6ea79c5
Moved BodyObject.username down to ClientObject.username so that one can look up
...
the PresentsClient given a ClientObject.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5435 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-10 22:45:58 +00:00
Michael Bayne
91d7846b46
We need to register our handler for ThrottleUpdatedMessage.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5434 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-10 22:45:25 +00:00
Michael Bayne
ae6e3e883a
Test throttle changing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5433 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-10 22:43:55 +00:00
Michael Bayne
a4a25674ce
Outgoing message throttle for ActionScript. This uses a timer rather than a
...
frame listener so that it has a chance of working out of the box on Thane.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5432 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-10 17:27:47 +00:00
Mike Thomas
c4527b2524
Split out the "chat name" from the rest of the visible name usage - Unfortuantely, visible name is used by various game bits as a lookup, so sometimes we want to just override the name to display in chat without affecting those lookups.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5431 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-10 01:25:18 +00:00
Ray Greenwell
19ac92f624
We've got a utility method for filling an array with an initial value.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5430 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-09 23:20:29 +00:00
Michael Bayne
b7214df1c2
We need our array to be filled with zeros, not undefineds.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5429 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-09 22:08:47 +00:00
Michael Bayne
9f2682a5e4
All of the ActionScript side of adjustable outgoing message rate throttling
...
except the actual throttling part. Need to think about a good way to do this
without blocking the whole client when we hit the throttle.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5428 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-09 20:18:12 +00:00
Dave Hoover
a9ed8f68da
Damnit, narya, stop getting that little yellow triangle w/ an exclamation mark
...
every time I svn up.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5427 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 22:25:39 +00:00
Jamie Doornbos
142598958d
Just noticed this old sc workaround file, it is no longer needed
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5426 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 20:16:44 +00:00
Michael Bayne
4f89bb2dbc
Point to the right explanatory method.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5425 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 20:14:27 +00:00
Michael Bayne
2e8b63435a
Thinking about it more, what we really want is for the client to target the per
...
second rate (10 messages per second), and to do the same 10x buffer on the
server that we were doing before so that we avoid disconnects due to network
congestion (which might "save up" some throttled messages and then end up
delivering them in a bunch with some later messages).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5424 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 20:13:30 +00:00
Michael Bayne
234b00df27
That's initialized in the constructor.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5423 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 19:39:35 +00:00
Michael Bayne
9c65e203b5
Client side message throttling. The server is configured with a hard limit, it
...
communicates that limit to the client which queues outgoing messages so that it
does not exceed the limit. When the throttle is changed, the server does not
apply the new throttle until the client has ACKed it to avoid edge cases where
the client is up against the limit when the throttle changes.
ActionScript side of all of this forthcoming as well as more testing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5422 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 19:38:00 +00:00
Dave Hoover
df42b4a013
Overrides & whitespace.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5421 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 18:51:22 +00:00
Michael Bayne
d68aaec196
Run the right client and server tests.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5420 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 18:26:03 +00:00
Michael Bayne
dfa60bb344
Find java in our path instead of requiring JAVA_HOME be set.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5419 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 18:25:47 +00:00
Jamie Doornbos
c614d0d625
Nixed unused import
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5418 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-07 23:44:44 +00:00
Jamie Doornbos
d336a5a3a9
Implement upstream message overflow for presents sessions
...
* Subclasses use setOverflowLimit to enable
* handleMessage appends to overflow queue and starts interval if overflow is currently active or if the throttle fails a message
* handleMessage ends session if overflow limit is reached
* New handleOverflowMessages dispatches messages from the overflow queue until none are left or throttle fails
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5417 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-07 23:42:02 +00:00
Jamie Doornbos
efa2cfaa3e
For bureau log redirection, expose a method to detect if it is still running. Throw in the bureau id accessor too.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5416 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-07 18:51:55 +00:00
Jamie Doornbos
3bbd9da353
Fixed spurious warnings about sockets on bureau shut down:
...
* socketClosed was issuing a warning, presumably because whirled doesn't normally disconnect flash client. Anyway, seems like overkill since the server can disconnect whenever it choosed
* Accoring to adobe, calling Socket.close after the Socket.close event should throw an IOError. Thane holds to this, while flash apparently does not. Make our code neutral by checking for connected prior to calling close
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5415 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-07 16:06:45 +00:00
Jamie Doornbos
f782ba7f07
Uncommenting log messages (these are very useful for the thane AVRG controller in msoy and can be configured without commenting them out)
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5414 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-03 23:03:23 +00:00
Michael Bayne
8629e37b6c
We can log something useful in this case.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5413 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-02 17:49:45 +00:00
Michael Bayne
62c1164da2
Two things: we shouldn't reference _conn outside the two synchronized methods
...
that read and write it, and we need to cope if a client manages to go away
before we can send it its bootstrap response.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5412 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-02 17:25:37 +00:00
Michael Bayne
e0aea87f62
Moved the Presents overview out of the javadocs. Added some simple top-level
...
pages which give us something useful to link to when we want to point to all of
the javadocs for a particular subtree of the Narya packages.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5411 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-02 00:47:06 +00:00
Jamie Doornbos
4d65dfb3ec
keywords and file header
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5410 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-01 22:59:38 +00:00
Jamie Doornbos
af72be4496
Bureau log redirector (from msoy)
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5409 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-01 22:57:13 +00:00
Jamie Doornbos
5adcafcc64
Fixed javadoc typo
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5408 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-01 22:45:57 +00:00
Dave Hoover
f05b9eb9ae
Javadoc fixes plus svn keywords.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5407 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-01 17:35:59 +00:00
Jamie Doornbos
f4111247d7
Make the bureau registry's client factory optional, must now be explicitly invoked using a new method
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5406 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-30 23:21:04 +00:00
Jamie Doornbos
7e49edd3eb
Weird, what was that doing there?
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5405 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-30 22:36:01 +00:00
Michael Bayne
bb8d04bea0
Tone down verbose logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5404 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-30 21:36:51 +00:00
Michael Bayne
2bffe8569b
Deverbosified logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5403 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-30 21:30:48 +00:00
Michael Bayne
6851fc1b28
And import those annotations as well.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5402 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-29 18:00:48 +00:00
Michael Bayne
053c179f69
Annotate some of these methods since PresentsClient is one place where we have
...
to do our little dance on different threads.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5401 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-29 18:00:15 +00:00
Dave Hoover
657aafaedb
And of course, if I were thinking this morning, I would've rerun the organize imports
...
thing before committing instead of just going "oh yeah, I've been having this stuff
sitting around uncommitted for a while waiting on it to be blessed" and missing
out on things that'd changed in the meantime.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5400 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-26 17:35:29 +00:00
Dave Hoover
8856120403
Import cleanups
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5399 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-26 17:29:59 +00:00
Ray Greenwell
c04adc6a6e
Brevify.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5398 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-25 23:54:58 +00:00
Nathan Curtis
d4e02b71d8
This is why MultiLoader didn't work in Air. Explanatory comment below.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5397 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-25 23:47:11 +00:00
Jamie Doornbos
59534c1ee6
May as well go totally ISO with date stamp, same as log4j %d
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5396 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-25 21:21:23 +00:00
Ray Greenwell
46e0585e0a
- Oh right, change WARNING to WARN (be more like our Java logging)
...
- Added an ERROR level, along with an error() method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5395 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-25 21:11:07 +00:00