BNetEx-About Tcpstream.flush()
BlitzMax Forums/BlitzMax Programming/BNetEx-About Tcpstream.flush()
| ||
hi there, i have been on Bnetex for some days and want to ask: when should i use flush()? do i need to use this method to free the buffer each time i want to send a new message? like this: client.flush() client.writeline("blabla") client.writeline("blabla") client.writeline("blabla") ... or just flush when i don't want the buffer anymore? |
| ||
Flush when everything in the pipeline isn't usable for your program anylonger. flush: clear the buffer (toSend, toReceive). So only flush if you processed all incoming messages and if you maintain the "toSend"-data by yourself (eg. collecting all npc positions and spreading them around in one dataset). bye MB |