Commit graph

73 commits

Author SHA1 Message Date
Steven Smith
ad0a450dc0 Bump version for development. 2018-02-06 14:26:53 -08:00
Steven Smith
586157506d Bump version for release 1.2 2018-02-06 14:25:56 -08:00
Steven Smith
2daecb5f83
Merge pull request #18 from sgdc3/master
Minor pom enhancements, update netty
2018-02-01 12:57:03 -08:00
sgdc3
bc07f0f136 Bump netty version 2018-02-01 19:14:51 +01:00
sgdc3
a100a4fbbf Pom enhancements 2018-02-01 19:13:37 +01:00
Steven Smith
880393f92a Clean up pom.xml 2018-01-31 22:49:08 -08:00
Steveice10
0d32cd5ddd Bump version for development. 2018-01-14 11:38:28 -08:00
Steveice10
73cd1fdb38 Bump version to 1.1 for release. 2018-01-14 11:37:52 -08:00
Steveice10
ca0dec4a2d Format code. 2017-09-01 12:55:00 -07:00
Steven Smith
c5880f0627 Add packetSending stub to SessionAdapter. 2017-06-27 13:12:02 -07:00
Steveice10
e8a86dafcb Fire event before a packet is sent, allowing the operation to be modified or cancelled. 2017-06-26 15:58:08 -07:00
Steveice10
a17d4769e8 Update license year. 2017-03-02 00:01:58 -08:00
Steveice10
bdefaa60c3 Bump version for development. 2017-03-01 16:14:22 -08:00
Steveice10
4608261e99 Migrate away from spacehq.org 2017-03-01 16:09:48 -08:00
Steveice10
f51fda303a Fix pom.xml indentation. 2017-01-25 15:17:21 -08:00
Steven Smith
4421890fa1 Merge pull request #16 from jkrossouw/port-netty4
Ported library to Netty 4.1.4, fixed a bug in Server.java and general code cleanup.
2017-01-25 15:15:37 -08:00
Kevin Rossouw
cc4d9869bb Ported library to Netty 4.1.4 (Netty 5 has been discontinued) by modifying TcpSession.java and pom.xml. Fixed a bug in Server.java where isListening() would throw a NullPointerException if called before bind(). Removed unused imports of java.net.InetAddress in Session.java and TcpSession.java. Updated Maven plugin versions in pom.xml. 2017-01-25 16:47:00 +02:00
Steveice10
b5bfe24517 Expose local and remote addresses of Sessions. 2016-12-15 17:05:24 -08:00
Steveice10
f846b96ab4 Generate source and javadoc jars. 2016-12-15 16:57:22 -08:00
Steven Smith
260a778563 Merge pull request #14 from phase/master
Set Java version to 1.7 in POM
2016-08-23 20:00:01 -07:00
Jadon Fowler
7be81ec106
Set Java version to 1.7 in POM
There are 1.7 classes being used, so we should specify that Java 1.7 is
required.
2016-08-23 19:31:52 -07:00
Steven Smith
55b4d8b6ba Merge pull request #13 from phase/master
Change Disconnect message to the Throwable's message
2016-08-21 19:24:24 -07:00
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