alejzeis / JRakLibPlus

An enhanced port of PHP RakLib, based on JRakLib
GNU Lesser General Public License v3.0
10 stars 5 forks source link

Session SendPacket #4

Closed net32 closed 8 years ago

net32 commented 8 years ago

I'm trying to send a EncapsulatedPacket and does not work

            EncapsulatedPacket pk = new EncapsulatedPacket();
            pk.reliability = Reliability.RELIABLE;
            pk.payload = new byte[0];
            session.sendPacket(pk);
net32 commented 8 years ago

I have to use new CustomPacket()?

Please show me a example

alejzeis commented 8 years ago

If sending encapsulated packets in a session use addToQueue() On Apr 22, 2016 4:54 AM, "Isaias" notifications@github.com wrote:

I have to use new CustomPacket()?

Please show me a example

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/jython234/JRakLibPlus/issues/4#issuecomment-213363136

net32 commented 8 years ago

dude, help me, i am trying to send packet = Reliability.RELIABLE, and never works, Argh i am crazy!!!

EncapsulatedPacket ep = new EncapsulatedPacket();
ep.reliability = Reliability.RELIABLE;
ep.payload = BufferOfDataPacket;
session.sendPacket(ep);

i am trying to send with and without appened ByteDataPack (0x8e)!

Dude helpe, show me a simple example, i am thinking its a problem with API of JRakLibPlus

net32 commented 8 years ago

argh was to be used session.addPacketToQueue()!

I will crush you! kkkk just kidding

solved!