Create interface in commonPage edited by Aidan Skinner
Writes from the protocol driver will go to an intermediary Connection (need to find a better term for this) object which will place it on the outgoing buffer. Reads from the network driver should be placed on the incoming buffer.
public interface ProtocolDriver
{
void bytesRecieved(QpidByteBuffer bytes);
boolean supportsProtocol(QpidByteBuffer bytes);
void setConnection(Connection con);
// Called when the connection has been idle
void idle();
}
public interface Connection
{
void setProtocolDrivers(ProtocolDriver[] drivers)
void setIncomingConnection(NetworkDriver driver)
void writeBytes (QpidByteBuffer bytes)
void setIdle (int idletimeout)
// Called by NetworkDriver when the socket has closed
void socketClosed()
}
public interface NetworkDriver
{
void open(InetAddress destination);
void close();
// Use the preconfigured SSLEngine
void setSSLEngine(SSLEngine engine);
// Taken from Socket
void setKeepAlive(boolean on)
void setOOBInline(boolean on)
void setReceiveBufferSize(int size)
void setReuseAddress(boolean on)
void setSendBufferSize(int size)
void setSoLinger(boolean on, int linger)
void setSoTimeout(int timeout)
void setTcpNoDelay(boolean on)
void setTrafficClass(int tc)
// Set the buffer to read from
void setOutputBuffer(QpidByteBuffer buffer);
// Set the buffer to write too
void setInputBuffer(QpidByteBuffer buffer);
}
Change Notification Preferences
View Online
|
View Change
|
Add Comment
|
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence
- [CONF] Apache Qpid > Create interface in common confluence