[
https://issues.jboss.org/browse/JGRP-886?page=com.atlassian.jira.plugin.s...
]
Bela Ban commented on JGRP-886:
-------------------------------
As a first step, I'll create an {{org.jgroups.nio.Server}} interface, which defines
the interface for a simple TCP or UDP based server, e.g. including
* bind interface / port (possibly multicast group to join if UDP)
* {{start()}} / {{stop()}} methods
* {{receive(T address, byte[] buf, int offset, int length)}}: called when data has been
received
* {{send(T dest, byte[] buf, int offset, int length)}}
There could be 2 implementations: {{TcpNioServer}} and {{UdpServer}} which are used by
{{TCP_NIO}} and (possibly) by {{UDP_NIO}}.
These servers could alsobe used standalone, e.g. by {{GossipRouter}} or {{STOMP}};
whenever an NIO based server is needed.
TCP_NIO: revive and support as additional transport
---------------------------------------------------
Key: JGRP-886
URL:
https://issues.jboss.org/browse/JGRP-886
Project: JGroups
Issue Type: Task
Reporter: Bela Ban
Assignee: Bela Ban
Fix For: 4.0
Merge TCP and TCP_NIO into one protocol. Adapt it to use NIO2 (when available).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)