diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-06-19 20:41:15 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-06-19 20:41:15 -0400 |
commit | 80fe25bcb811508a5fe826c37513a8a63239cb55 (patch) | |
tree | 9e6242e55ee55e3a0b56322f9d94aacfaf546b25 /src/main/java/net/cshift/transit/network/Channel.java | |
parent | 9190d7c12d1bbdcfc401543128fb0219e6fc0a81 (diff) |
[Release] version 2.0.0
Diffstat (limited to 'src/main/java/net/cshift/transit/network/Channel.java')
-rw-r--r-- | src/main/java/net/cshift/transit/network/Channel.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/java/net/cshift/transit/network/Channel.java b/src/main/java/net/cshift/transit/network/Channel.java index c7be552..e5c64da 100644 --- a/src/main/java/net/cshift/transit/network/Channel.java +++ b/src/main/java/net/cshift/transit/network/Channel.java @@ -109,12 +109,10 @@ public final class Channel<D> { /** Send a packet to the recieving node * * @param packet the packet to send - * @return {@code true} if the recieving node accepts the packet + * @return The overflow data if the packet is only partially accepted. {@code null} otherwise. */ - public boolean send(IStaticPacket<D> packet) + public IStaticPacket<D> send(IStaticPacket<D> packet) { - if(!this.isTerminated()) - return to.accept(packet, this); - return false; + return to.accept(packet, this); } } |