As stated in a previous post, I know the TCP KISS works, but as noted from the code, that is specific to receive.
I am pretty sure I had the definitions after all the device declarations (so appears after CHANNEL 2 in config).
So, if the application is listening on KISS port 8100, it will only hear CHANNEL 2. If your application listens on KISS port 8101,? , it will only hear CHANNEL 0.
Again, (and since the posted code saya nothing about it) I am not sure this was implemented for AGW, so (in theory) the second statement (CHANNEL 2) should be used.