Print Server
Posted: Sat Aug 23, 2014 5:50 pm
I'd like some advice on the feasibility of a project.
I'd like to build a live code based print server. The server would accept RAW print files on port 9100 and write them to disk. The user would be shown a list of print files that are stored, and then have the ability to select one, and print it, at which point the stored Raw file would be sent to the actual printer by the stack and the stored file would be deleted. The stack won't be doing any kind of modification or processing of the data, just holding it until a user wants to send it.
This seems like it should be possible using the socket functions, but I don't know anything about the RAW printing protocol. I know I need to use the read from socket command, but how will I know how long to read for? Different incoming jobs will be different sizes.
I was hoping for an opinion on whether such a program is feasible, and any other general advice that anyone might have.
I'd like to build a live code based print server. The server would accept RAW print files on port 9100 and write them to disk. The user would be shown a list of print files that are stored, and then have the ability to select one, and print it, at which point the stored Raw file would be sent to the actual printer by the stack and the stored file would be deleted. The stack won't be doing any kind of modification or processing of the data, just holding it until a user wants to send it.
This seems like it should be possible using the socket functions, but I don't know anything about the RAW printing protocol. I know I need to use the read from socket command, but how will I know how long to read for? Different incoming jobs will be different sizes.
I was hoping for an opinion on whether such a program is feasible, and any other general advice that anyone might have.