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 java.lang.Object implements GenericMessageConnectionListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
BuddyPluginBuddy.fragmentHandler.fragmentAssembly
-
Field Summary
Fields Modifier and Type Field Description private GenericMessageConnection
connection
private BuddyPluginBuddy.fragmentHandler.fragmentAssembly
current_reply_frag
private BuddyPluginBuddy.fragmentHandler.fragmentAssembly
current_request_frag
private int
next_fragment_id
private BuddyPluginBuddy.fragmentHandlerReceiver
receiver
private int
recv_count
private int
send_count
-
Constructor Summary
Constructors Modifier Constructor Description protected
fragmentHandler(GenericMessageConnection _connection, BuddyPluginBuddy.fragmentHandlerReceiver _receiver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
close()
void
connected(GenericMessageConnection connection)
void
failed(GenericMessageConnection connection, java.lang.Throwable error)
protected java.lang.String
getString()
void
receive(GenericMessageConnection connection, PooledByteBuffer message)
protected void
send(java.util.Map data_map, boolean is_request, boolean record_active)
void
start()
-
-
-
Field Detail
-
connection
private GenericMessageConnection connection
-
receiver
private BuddyPluginBuddy.fragmentHandlerReceiver receiver
-
next_fragment_id
private int next_fragment_id
-
current_request_frag
private BuddyPluginBuddy.fragmentHandler.fragmentAssembly current_request_frag
-
current_reply_frag
private BuddyPluginBuddy.fragmentHandler.fragmentAssembly current_reply_frag
-
send_count
private int send_count
-
recv_count
private int recv_count
-
-
Constructor Detail
-
fragmentHandler
protected fragmentHandler(GenericMessageConnection _connection, BuddyPluginBuddy.fragmentHandlerReceiver _receiver)
-
-
Method Detail
-
start
public void start()
-
connected
public void connected(GenericMessageConnection connection)
- Specified by:
connected
in interfaceGenericMessageConnectionListener
-
failed
public void failed(GenericMessageConnection connection, java.lang.Throwable error) throws MessageException
- Specified by:
failed
in interfaceGenericMessageConnectionListener
- Throws:
MessageException
-
send
protected void send(java.util.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
protected java.lang.String getString()
-
-