Sends the data to the address specified. If address is not already connected, this does nothing and returns null. If address is already connected, then it returns the attached object so the caller can prepare for any responses. @param saddr @param data @return null if not sent. attach object in l
(final InetSocketAddress saddr, final byte[] data)
| 93 | * @return null if not sent. attach object in link if sent. |
| 94 | */ |
| 95 | public Object send(final InetSocketAddress saddr, final byte[] data) throws ClosedChannelException { |
| 96 | final Link link = links.get(saddr); |
| 97 | if (link == null) { |
| 98 | return null; |
| 99 | } |
| 100 | link.send(data); |
| 101 | return link.attachment(); |
| 102 | } |
| 103 | } |
nothing calls this directly
no test coverage detected