posted 8 years ago
Hi guys i'm new to these forum, I came here looking for answers to a problem i'm having. i'm making a bomberman game and it need to work in LAN. i need to send an image, 2 ints and an object from a client (the game) to a server, and back to another client (another game). Right now im just trying to send all those things forma a game, to the server and back to the game.The problem im having occurs when i try to send an image a second time. This is my code for the server part:
This is the Client part of the Game code:
All works ok except for the image part. The client sends the image, the server receive it, and re-sends it and the client receive it. but then it throws this error:
the specific place where the error occurs is in line 90:
Any idea of why this error is happening? Any help is appreciated