Package com.biglybt.plugin.net.buddy
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 GenericMessageConnection
private int
private int
private int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
fragmentHandler
(GenericMessageConnection _connection, BuddyPluginBuddy.fragmentHandlerReceiver _receiver) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
close()
void
connected
(GenericMessageConnection connection) void
failed
(GenericMessageConnection connection, Throwable error) protected String
void
receive
(GenericMessageConnection connection, PooledByteBuffer message) protected void
void
start()
-
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:
connected
in interfaceGenericMessageConnectionListener
-
failed
- Specified by:
failed
in 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:
receive
in interfaceGenericMessageConnectionListener
- Throws:
MessageException
-
close
protected void close() -
getString
-