Originally Posted by Pikmeir
secondaryFunction() only acts as a middleman, and nothing else. When it receives 'buffer', it will just call another function (I wrote some other functions in another file, but I'm not using them yet).
For example, (I'm sure you already understand) if the client types 'say hello' it will send this as buffer to the server, the server will send it to secondaryCommand(), and secondaryCommand() will change it to a string and send it to another function that examines it, that other function will choose the reply and then send the reply to the main function to go to the client.