Print Server

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jpie
Posts: 2
Joined: Sat Aug 23, 2014 5:43 pm

Print Server

Post by jpie » 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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Print Server

Post by FourthWorld » Sat Aug 23, 2014 8:21 pm

Probably feasible, but probably a lot of work relative to what I'd imagine is a plethora of free software for that. What OS is the server running?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jpie
Posts: 2
Joined: Sat Aug 23, 2014 5:43 pm

Re: Print Server

Post by jpie » Sat Aug 23, 2014 9:06 pm

Windows or Linux, I'm not entirely sure yet. I imagine a lot of Livecode projects that people do are also available elsewhere, some free.
I plan to put my own twist on it.
I also found some Python code for this kind of thing and if worst comes to worst I could just configure Livecode as a front end for the Python script.
I just wondered if doing in all in Livecode would be relatively simple, or way over my head. :-)

Post Reply