Frago9876543210 / MCBE-Proxy

38 stars 13 forks source link

Block packet #6

Closed debil9877654321 closed 6 years ago

debil9877654321 commented 6 years ago

For example when client send message (text packet) I want to close it, but this looks to be bugged, is that right? I still send the packet to server when I cancel sending it.

Frago9876543210 commented 6 years ago

Canceling a packet results in the queue being broken.

debil9877654321 commented 6 years ago

Problem of your proxy is server send packet directly to the client and your proxy is only reading it, but you have to connect player trough the proxy so the packets will go like this: image but currently it's like this image I don't know to draw :,D

debil9877654321 commented 6 years ago

I think you have to make it catch 0x01 packet with player data, but I think you must write your own system to read the packages because in pocketmine raklib it does not catch for some reason as I checked.

debil9877654321 commented 6 years ago

socket receive catch 0x01, so you only have to decode it by another way I think.

Frago9876543210 commented 6 years ago

@debil9877654321 The problem is that the MCPE has a queue of packages and their confirmation.

debil9877654321 commented 6 years ago

Oh, and how to do it then?

Frago9876543210 commented 6 years ago

Idk

debil9877654321 commented 6 years ago

Maybe dkt know, you can try ask him.

SuperOP535 commented 6 years ago

rip

Frago9876543210 commented 6 years ago

To block client packet need send ACK with right seq number. @Yexeed already tried to block the client's package and it's was done, but with some bugs. Now we need to come up with a better implementation of packet blocking.

Frago9876543210 commented 6 years ago

e4234a7799648893fa14c6c8a0920326aeb869fe