MCPcopy Create free account
hub / github.com/apache/cloudstack / send

Method send

utils/src/main/java/com/cloud/utils/nio/NioServer.java:95–102  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 3

sendMethod · 0.95
attachmentMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected