Steveice10
bfd0687b3c
Replace dnsjava with netty DNS support.
2020-06-01 14:07:46 -07:00
Steveice10
75f0f02d89
Move priority packet handling to channelRead0.
2020-05-31 17:32:21 -07:00
Steveice10
8dbe3d081c
Make sure bad packet data is skipped when errors are suppressed.
2020-05-31 17:23:22 -07:00
Steveice10
b025025001
Call PacketErrorEvent for more I/O errors.
2020-05-31 17:15:44 -07:00
Steveice10
72bde6a3c0
Fix stack overflow in flag methods.
2020-05-30 15:38:24 -07:00
Steveice10
be70b05e3c
More improvements to flag methods.
2020-05-30 15:33:56 -07:00
Steveice10
12d26014fa
Update dnsjava to 3.1.0 and add result to debug output.
2020-05-30 15:22:11 -07:00
Steveice10
d82b1b688d
Change DNS error printing to a debug printing flag.
2020-05-30 11:57:33 -07:00
Steveice10
8eaefa9cfc
Add javadocs to BuiltinFlags.
2020-05-30 10:55:04 -07:00
Steveice10
fd7772a9b0
Improve implementation of flag methods.
2020-05-30 10:52:37 -07:00
Steveice10
5291bea6a0
Add flag for printing DNS resolution errors.
2020-05-30 10:49:39 -07:00
ipbeegle
ff20c8f2a5
Change StreamNetInput, StreamNetOutput
...
convert to using Java filter streams
update syntax
2020-05-25 05:21:10 -04:00
ipbeegle
68542b8e58
Update PacketProtocol
...
remove negative packet id checks from createIncomingPacket and getOutgoingClass
update syntax
2020-05-25 05:13:13 -04:00
ipbeegle
f2adf41dd2
Add reset method to StreamNetInput
2020-05-25 02:42:11 -04:00
ipbeegle
3c5b1f4792
Merge branch 'master' of https://github.com/Steveice10/PacketLib.git
2020-05-25 02:16:26 -04:00
ipbeegle
3072587bc7
Update StreamNetInput
...
Add mark, markSupported, skip
2020-05-25 02:03:44 -04:00
ipbeegle
c1f371725a
Update PacketProtocol
...
Add reverse mapping for outgoing packet id<->class
2020-05-25 01:48:32 -04:00
Steveice10
614d56cdc0
Add PacketErrorEvent, allowing packet I/O exceptions to be ignored.
2020-05-23 14:52:18 -07:00
ipbeegle
74ee4fa02b
Small optimization to PacketProtocol.getOutgoingId(Class<? extends Packet>)
2020-05-20 23:37:46 -04:00
ipbeegle
27cdf88b36
Add BufferedPacket
...
Add PacketProtocol.getOutgoingId(Packet) to get id from BufferedPacket
Change TcpPacketCodec.encode to use Packet instance instead of its class
2020-05-20 23:33:27 -04:00
Steveice10
43b394dfdc
Check if DNS lookup result is null.
2020-04-21 12:08:50 -07:00
Steveice10
b98e525016
Change SRV lookup code to use dnsjava.
2020-04-21 12:01:26 -07:00
Steveice10
d725ce0d79
Implement proper NIO proxy support and remove synchronous support from
...
send/disconnect.
2020-02-26 18:15:59 -08:00
Steveice10
32247f3098
Remove dot from end of host in SRV records.
2019-10-20 20:18:58 -07:00
Steveice10
1d5a0ad81b
Use Cipher mode constants.
2018-09-06 10:27:21 -07:00
Steveice10
988d411d96
Fix documentation mistake.
2018-08-29 19:24:08 -07: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
4608261e99
Migrate away from spacehq.org
2017-03-01 16:09:48 -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
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
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