Jadon Fowler
333b7d247d
Change Disconnect message to the Throwable's message
...
Throwable#toString() returns a description of the Throwable that
includes the name of the class appended to
Throwable#getLocalizedMessage(), which can be used for debugging
purposes.
2016-08-21 18:00:17 -07:00
Steven Smith
1b5b2c37a0
Fix readVarLong.
2016-08-13 17:12:34 -07:00
Steven Smith
885d03759d
Report when packets are not fully read.
2015-08-24 20:15:51 -07:00
Steven Smith
62d5509768
Add additional array I/O methods, add ByteBuffer-backed NetInput and NetOutput implementations.
2015-08-22 21:52:01 -07:00
Steven Smith
494805306f
Remove prefixed byte array methods.
2015-08-22 20:25:04 -07:00
Steven Smith
b7a1cdf2cc
Ensure we aren't waiting for a connection when we've been disconnected by the user.
2015-08-21 21:16:20 -07:00
Steven Smith
fa806e58fe
Sync future instead of using listener.
2015-08-21 21:14:17 -07:00
Steven Smith
34c2a5c291
Ensure channel is set before returning from connect().
2015-08-21 21:05:52 -07:00
Steven Smith
310de7c490
Test.
2015-08-21 20:52:17 -07:00
Steven Smith
83a5cb405c
Minor fixes and cleanup.
2015-08-21 20:47:37 -07:00
Steven Smith
9c1ac6aa9b
Ensure channel is set before returning from bind().
2015-08-21 20:08:13 -07:00
Steven Smith
ce140f43d6
Cleanup, add wait flag to Server.bind, fix connection errors not throwing DisconnectedEvent.
2015-08-21 19:15:36 -07:00
Steven Smith
4c06294c88
Ensure connection process has fully completed before ending wait loop.
2015-08-20 16:59:59 -07:00
Steven Smith
c68659008b
Report exceptions from connection thread.
2015-08-13 19:31:00 -07:00
Steven Smith
a2e4898749
Update URLs.
2015-07-21 15:58:27 -07:00
Steven Smith
26e6ae38a5
General cleanup, fixes, and re-versioning.
2015-07-20 12:09:58 -07:00
Steven Smith
83161ffa03
Update to Netty 5.0.0.Alpha2
2015-07-18 18:55:00 -07:00
Steven Smith
aa1c3051a9
Fix TcpSession CME.
2015-05-02 14:14:05 -07:00
Steven Smith
3687891770
Further improvements to exception handling.
2015-04-17 08:47:10 -07:00
Steven Smith
3d3ebad1f4
Listen for future errors and wait using awaitUninterruptibly in TcpSession.connect.
2015-04-17 08:40:26 -07:00
Steven Smith
634e89ff04
Add exception boolean to TcpSession to halt loops if an exception occurs.
2015-01-25 09:42:11 -08:00
Steven Smith
4cf17e3dea
Fix getWriteTimeout
2014-11-23 16:15:20 -08:00
Steven Smith
65e3518aaf
Timeout should be multiplied by 1000 for milliseconds.
2014-09-14 21:03:12 -07:00
Steven Smith
11ce15cb03
Ensure currently set timeout and handler is used.
2014-09-14 20:43:39 -07:00
Steven Smith
7b3146c4d4
Catch timeout exceptions throughout all of the connect method, tweak connect timeout application.
2014-09-14 20:14:14 -07:00
Steven Smith
670f5fb219
Use try-catch for connect timeout exception if waiting.
2014-09-14 19:46:05 -07:00
Steven Smith
9cbdc6a1aa
More clarification to timeout disconnect messages.
2014-09-14 19:19:57 -07:00
Steven Smith
d418516fe3
Minor message update.
2014-09-14 19:15:55 -07:00
Steven Smith
8fa57eb73a
Call timeout handler if connect future results in a ConnectTimeoutException.
2014-09-14 19:13:25 -07:00
Steveice10
7b26b14f31
Expand on timeout control.
2014-08-27 19:53:54 -07:00
Steveice10
249511e80f
Allow adjusting timeout and performing actions when a timeout occurs.
2014-08-26 20:21:06 -07:00
Steven Smith
1f8abf7eea
Add methods for reading/writing UUIDs as longs.
2014-08-11 11:34:36 -07:00
Steven Smith
2ce93ace27
Add VarLong support, fix compression issue.
2014-08-04 11:28:15 -07:00
Steven Smith
73f375ba20
Add packet compression and methods for reading bytes to an existing array.
2014-07-16 12:46:26 -07:00
Steven Smith
5e4868a3f3
Update download URLs
2014-06-28 16:14:32 -07:00
Steven Smith
49651dded0
Allow PacketHeader to return -1 for packet IDs to signal that the packet should not be read yet.
2014-06-21 20:15:54 -07:00
Steven Smith
6b7b65b015
Allow protocols to specify whether packet sizers or encryptors will ever be added to the connection.
2014-06-21 19:50:34 -07:00
Steven Smith
0001266658
Actually read the bytes instead of passing the same buffer to satisfy Netty.
2014-06-21 19:30:59 -07:00
Steven Smith
396b7bfab7
Add interface for customizing packet headers.
2014-06-20 14:39:10 -07:00
Steveice10
21c7d90a78
Catch and report exceptions from disconnect events
2014-04-04 15:39:51 -07:00
Steveice10
f6d1c51ee0
Update build server URL
2014-04-03 16:31:21 -07:00
Steveice10
52249597ce
Only call PacketSendEvent if there are no errors in writing
2014-03-22 13:51:21 -07:00
Steveice10
6760893201
Minor cleanup, add Proxy support to TcpSessionFactory
2014-03-18 18:18:50 -07:00
Steveice10
e19e1a44e9
Refactored ch.spacebase to org.spacehq, reformatted code and line endings.
2014-03-01 16:47:03 -08:00
Steveice10
67d531f598
Moved test classes out of source folder and into example folder.
2014-01-30 20:16:59 -08:00
Steveice10
90a4170a56
Add option to not wait for session to connect before returning, ensure that channel has been obtained before returning.
2014-01-07 18:57:43 -08:00
Steveice10
a933383832
Changed "Internal exception" disconnect message to be identifiable as the library
2014-01-03 13:08:54 -08:00
Steveice10
ee8a02ddc5
Added link for downloading builds
2013-12-19 17:18:04 -08:00
Steveice10
eec5807cfa
Remove debug message
2013-12-14 17:03:25 -08:00
Steveice10
91d16ae3be
Change packet header to have length int, add splitter to split packets by length, add encryption support, misc changes in preparation for MCProtocolLib rewrite
2013-12-14 16:41:25 -08:00