Search in sources :

Example 16 with Message

use of com.biglybt.core.peermanager.messaging.Message in project BiglyBT by BiglySoftware.

the class PeerForeignDelegate method getSupportedMessages.

@Override
public Message[] getSupportedMessages() {
    com.biglybt.pif.messaging.Message[] plug_msgs = foreign.getSupportedMessages();
    Message[] core_msgs = new Message[plug_msgs.length];
    for (int i = 0; i < plug_msgs.length; i++) {
        core_msgs[i] = new MessageAdapter(plug_msgs[i]);
    }
    return core_msgs;
}
Also used : MessageAdapter(com.biglybt.pifimpl.local.messaging.MessageAdapter) Message(com.biglybt.core.peermanager.messaging.Message)

Aggregations

Message (com.biglybt.core.peermanager.messaging.Message)16 DirectByteBuffer (com.biglybt.core.util.DirectByteBuffer)5 RawMessage (com.biglybt.core.networkmanager.RawMessage)4 IOException (java.io.IOException)4 OutgoingMessageQueue (com.biglybt.core.networkmanager.OutgoingMessageQueue)2 RawMessageImpl (com.biglybt.core.networkmanager.impl.RawMessageImpl)2 DiskManagerReadRequest (com.biglybt.core.disk.DiskManagerReadRequest)1 NetworkAdmin (com.biglybt.core.networkmanager.admin.NetworkAdmin)1 MessageException (com.biglybt.core.peermanager.messaging.MessageException)1 AERunnable (com.biglybt.core.util.AERunnable)1 MainlineDHTProvider (com.biglybt.pif.dht.mainline.MainlineDHTProvider)1 GenericMessageEndpoint (com.biglybt.pif.messaging.generic.GenericMessageEndpoint)1 GenericMessageStartpoint (com.biglybt.pif.messaging.generic.GenericMessageStartpoint)1 MessageAdapter (com.biglybt.pifimpl.local.messaging.MessageAdapter)1 InetAddress (java.net.InetAddress)1 ByteBuffer (java.nio.ByteBuffer)1 ArrayList (java.util.ArrayList)1