equal
deleted
inserted
replaced
347 void writeBuffer(OutputStream s, byte [] buf, int off, int len) |
347 void writeBuffer(OutputStream s, byte [] buf, int off, int len) |
348 throws IOException { |
348 throws IOException { |
349 /* |
349 /* |
350 * Copy data out of buffer, it's ready to go. |
350 * Copy data out of buffer, it's ready to go. |
351 */ |
351 */ |
352 ByteBuffer netBB = (ByteBuffer) |
352 ByteBuffer netBB = ByteBuffer.allocate(len).put(buf, 0, len).flip(); |
353 (ByteBuffer.allocate(len).put(buf, 0, len).flip()); |
|
354 engine.writer.putOutboundDataSync(netBB); |
353 engine.writer.putOutboundDataSync(netBB); |
355 } |
354 } |
356 |
355 |
357 /* |
356 /* |
358 * Delineate or read a complete packet from src. |
357 * Delineate or read a complete packet from src. |