1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
8 // **********************************************************************
12 public interface Transceiver
14 java
.nio
.channels
.SelectableChannel
fd();
17 // Initialize the transceiver.
19 // Returns the status if the initialize operation.
28 // Returns true if all the data was written, false otherwise.
30 boolean write(Buffer buf
);
35 // Returns true if all the requested data was read, false otherwise.
37 // NOTE: In Java, read() returns a boolean in moreData to indicate
38 // whether the transceiver has read more data than requested.
39 // If moreData is true, read should be called again without
40 // calling select on the FD.
42 boolean read(Buffer buf
, Ice
.BooleanHolder moreData
);
46 Ice
.ConnectionInfo
getInfo();
47 void checkSendSize(Buffer buf
, int messageSizeMax
);