Class GenericMessageConnectionDirect
java.lang.Object
com.biglybt.pifimpl.local.messaging.GenericMessageConnectionDirect
- All Implemented Interfaces:
GenericMessageConnectionAdapter
public class GenericMessageConnectionDirect
extends Object
implements GenericMessageConnectionAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from interface GenericMessageConnectionAdapter
GenericMessageConnectionAdapter.ConnectionListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate NetworkConnectionprivate static AsyncDispatcherprivate GenericMessageEndpointImplprivate List<LimitedRateGroup> static final intprivate Stringprivate Stringprivate List<LimitedRateGroup> private GenericMessageConnectionImplprivate ConnectionImplprivate booleanprivate byte[][]private int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGenericMessageConnectionDirect(String _msg_id, String _msg_desc, GenericMessageEndpointImpl _endpoint, int _stream_crypto, byte[][] _shared_secrets) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccepted()voidaddInboundRateLimiter(RateLimiter _limiter) voidaddOutboundRateLimiter(RateLimiter _limiter) voidclose()protected voidconnect(NetworkConnection _connection) Incoming connect callvoidconnect(ByteBuffer upper_initial_data, GenericMessageConnectionAdapter.ConnectionListener listener) intintgetType()protected static GenericMessageConnectionDirectreceive(GenericMessageEndpointImpl endpoint, String msg_id, String msg_desc, int stream_crypto, byte[][] shared_secrets) voidremoveInboundRateLimiter(RateLimiter _limiter) voidremoveOutboundRateLimiter(RateLimiter _limiter) voidsend(PooledByteBuffer data) voidsetOwner(GenericMessageConnectionImpl _owner) protected void
-
Field Details
-
MAX_MESSAGE_SIZE
public static final int MAX_MESSAGE_SIZE- See Also:
-
dispatcher
-
owner
-
msg_id
-
msg_desc
-
stream_crypto
private int stream_crypto -
endpoint
-
connection
-
plugin_connection
-
connected
private volatile boolean connected -
processing
private boolean processing -
closed
private volatile boolean closed -
inbound_rls
-
outbound_rls
-
-
Constructor Details
-
GenericMessageConnectionDirect
protected GenericMessageConnectionDirect(String _msg_id, String _msg_desc, GenericMessageEndpointImpl _endpoint, int _stream_crypto, byte[][] _shared_secrets)
-
-
Method Details
-
receive
protected static GenericMessageConnectionDirect receive(GenericMessageEndpointImpl endpoint, String msg_id, String msg_desc, int stream_crypto, byte[][] shared_secrets) -
setOwner
- Specified by:
setOwnerin interfaceGenericMessageConnectionAdapter
-
getMaximumMessageSize
public int getMaximumMessageSize()- Specified by:
getMaximumMessageSizein interfaceGenericMessageConnectionAdapter
-
getType
- Specified by:
getTypein interfaceGenericMessageConnectionAdapter
-
getTransportType
public int getTransportType()- Specified by:
getTransportTypein interfaceGenericMessageConnectionAdapter
-
addInboundRateLimiter
- Specified by:
addInboundRateLimiterin interfaceGenericMessageConnectionAdapter
-
removeInboundRateLimiter
- Specified by:
removeInboundRateLimiterin interfaceGenericMessageConnectionAdapter
-
addOutboundRateLimiter
- Specified by:
addOutboundRateLimiterin interfaceGenericMessageConnectionAdapter
-
removeOutboundRateLimiter
- Specified by:
removeOutboundRateLimiterin interfaceGenericMessageConnectionAdapter
-
connect
Incoming connect call- Parameters:
_connection-
-
accepted
public void accepted()- Specified by:
acceptedin interfaceGenericMessageConnectionAdapter
-
getEndpoint
- Specified by:
getEndpointin interfaceGenericMessageConnectionAdapter
-
getStartpoint
- Specified by:
getStartpointin interfaceGenericMessageConnectionAdapter
-
getConnection
- Specified by:
getConnectionin interfaceGenericMessageConnectionAdapter
-
connect
public void connect(ByteBuffer upper_initial_data, GenericMessageConnectionAdapter.ConnectionListener listener) - Specified by:
connectin interfaceGenericMessageConnectionAdapter
-
startProcessing
protected void startProcessing() -
send
- Specified by:
sendin interfaceGenericMessageConnectionAdapter- Throws:
MessageException
-
close
- Specified by:
closein interfaceGenericMessageConnectionAdapter- Throws:
MessageException
-