Hello, I am trying to get rid of the inbuf and move it to a que so I can parse it for lag free commands. Everythings is going well, as in I can parse the input and place it into the linked list and begin to execute commands from it.
There is ONE slight problem and I don't really know why it does this as my socket knowledge is zero! What seems to happen is that the game will sometimes call read_from_descriptor multiple times when you type something in. Let me demonstrate: I have debugging infornmation in read_from_descriptor to display how many times the function is entered. I will type 'say hi' and at times it will display this: >say hi About to read from your desc You are typing a command. d inbuf before: d inbuf after: say hi <10100hp 30000E> [1200] About to read from your desc You are typing a command. d inbuf before: say hi d inbuf after: say hi You say, "Hi" As you can see it goes in there twice even though I typed it in once, but the inbuf does not increase in size at all. When I add entries to my que, it adds double because of this and that is not acceptable. Could someone please explain to me why this is occuring and help me fix this? I have a general idea of that it is just timing when you typed in the command and the game polls your descriptor again so that is why it only occurs here and there. THANKS!

