summaryrefslogtreecommitdiff
path: root/src/main/java/net/cshift/transit/network/Channel.java
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2021-06-19 20:41:15 -0400
committerKyle Gunger <kgunger12@gmail.com>2021-06-19 20:41:15 -0400
commit80fe25bcb811508a5fe826c37513a8a63239cb55 (patch)
tree9e6242e55ee55e3a0b56322f9d94aacfaf546b25 /src/main/java/net/cshift/transit/network/Channel.java
parent9190d7c12d1bbdcfc401543128fb0219e6fc0a81 (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.java8
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);
}
}