Class BuddyPluginBuddy.fragmentHandler
java.lang.Object
com.biglybt.plugin.net.buddy.BuddyPluginBuddy.fragmentHandler
- All Implemented Interfaces:
GenericMessageConnectionListener
- Enclosing class:
BuddyPluginBuddy
protected class BuddyPluginBuddy.fragmentHandler
extends Object
implements GenericMessageConnectionListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GenericMessageConnectionprivate intprivate intprivate int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedfragmentHandler(GenericMessageConnection _connection, BuddyPluginBuddy.fragmentHandlerReceiver _receiver) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclose()voidconnected(GenericMessageConnection connection) voidfailed(GenericMessageConnection connection, Throwable error) protected Stringvoidreceive(GenericMessageConnection connection, PooledByteBuffer message) protected voidvoidstart()
-
Field Details
-
connection
-
receiver
-
next_fragment_id
private int next_fragment_id -
current_request_frag
-
current_reply_frag
-
send_count
private int send_count -
recv_count
private int recv_count
-
-
Constructor Details
-
fragmentHandler
protected fragmentHandler(GenericMessageConnection _connection, BuddyPluginBuddy.fragmentHandlerReceiver _receiver)
-
-
Method Details
-
start
public void start() -
connected
- Specified by:
connectedin interfaceGenericMessageConnectionListener
-
failed
- Specified by:
failedin interfaceGenericMessageConnectionListener- Throws:
MessageException
-
send
protected void send(Map data_map, boolean is_request, boolean record_active) throws BuddyPluginException - Throws:
BuddyPluginException
-
receive
public void receive(GenericMessageConnection connection, PooledByteBuffer message) throws MessageException - Specified by:
receivein interfaceGenericMessageConnectionListener- Throws:
MessageException
-
close
protected void close() -
getString
-