Lines Matching refs:buf
247 ByteBuffer buf = ByteBuffer.allocateDirect(Util.SMALL_BUFFER);
248 buf.put(Util.SMALL_MESSAGE.getBytes("ISO-8859-1"));
249 buf.flip();
251 debug("sending small message: " + buf);
252 sc.send(buf, info);
255 buf = ByteBuffer.allocateDirect(Util.LARGE_BUFFER);
256 buf.put(Util.LARGE_MESSAGE.getBytes("ISO-8859-1"));
257 buf.flip();
259 debug("sending large message: " + buf);
260 sc.send(buf, info);
265 sc.receive(buf, null, handler);