I am writing a C++ client application that will be receiving a set of lines for printing ie. say 50 lines per transmission from a server. My application is supposed to receive these lines on a socket and send it to the printer.
The question is how do I send these periodic lines that I receive from the server and send it to the printer? How do I decide when the lines are equal to one page and forward it to the printer?
Any kind of help would be appreciated. An example code would be really helpful.
Thanks in advance.
P.S: This is my first time in asking a question so please bear with me if you dont understand it.