java-game-server icon indicating copy to clipboard operation
java-game-server copied to clipboard

channel broadcasts error data

Open Rekoe opened this issue 11 years ago • 0 comments

why this happend when i use

for(Channel channel :channels)
{
        channel.writeAndFlush(msg);
}

the same message send two channel had the error data it likes two channel use the same channel . are you know how it opend?

2014-07-31 15:46:06,030 DEBUG LoggingHandler  - [id: 0x0e63b384, /192.168.1.13:52891 => /192.168.1.13:9010] RECEIVED(14B)
         +-------------------------------------------------+
         |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |
+--------+-------------------------------------------------+----------------+
|00000000| 00 00 00 0e 00 65 00 01 00 04 63 5a 58 43       |.....e....cZXC  |
+--------+-------------------------------------------------+----------------+
2014-07-31 15:46:06,031 INFO  ChatMessageExecutor  - <<<<<<<<<<<<<<<<<<<<<<Name[192.168.1.15] say: cZXC>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2014-07-31 15:46:06,032 DEBUG LoggingHandler  - [id: 0x3c51fa98, /192.168.1.13:52884 => /192.168.1.13:9010] WRITE(8B)
         +-------------------------------------------------+
         |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |
+--------+-------------------------------------------------+----------------+
|00000000| 00 00 00 06 02 59 00 01                         |.....Y..        |
+--------+-------------------------------------------------+----------------+
2014-07-31 15:46:06,032 DEBUG LoggingHandler  - [id: 0x0e63b384, /192.168.1.13:52891 => /192.168.1.13:9010] WRITE(48B)
         +-------------------------------------------------+
         |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |
+--------+-------------------------------------------------+----------------+
|00000000| 00 00 00 06 02 59 00 0c 00 00 31 39 32 2e 31 36 |.....Y....192.16|
|00000010| 38 2e 31 2e 31 35 00 04 00 0c 58 43 00 00 31 39 |8.1.15....XC..19|
|00000020| 32 2e 31 36 38 2e 31 2e 31 35 00 04 63 5a 58 43 |2.168.1.15..cZXC|
+--------+-------------------------------------------------+----------------+
2014-07-31 15:46:06,033 DEBUG LoggingHandler  - [id: 0x3c51fa98, /192.168.1.13:52884 => /192.168.1.13:9010] FLUSH
2014-07-31 15:46:06,033 DEBUG LoggingHandler  - [id: 0x0e63b384, /192.168.1.13:52891 => /192.168.1.13:9010] FLUSH

Rekoe avatar Jul 31 '14 08:07 Rekoe