Thread: I am working on a network printer spooler project. How to queue print requests ?

  1. #1
    Registered User
    Join Date
    Dec 2014
    Location
    Islamabad, Pakistan, Pakistan
    Posts
    2

    I am working on a network printer spooler project. How to queue print requests ?

    I am implementing a network spooler printer in C linux.

    1. I would want to know how to queue different print requests coming from different clients to a multi threaded server and passing them onto a printer?

      for example pseudo code:
      thread1 is interacting with client1
      client 1 sends a file
      server creates a file and copies it their at its end
      server then queues the file path in a queue for processing by the printer
      client1 sends file1,server stores file1
      client1 sends file2,server stores file2

      queue: file1,file2
      Printer retrieves file1 and then file2 and then goes into wait state until a new arrives.
      Does the above make sense?linu



    2. How to address each client individually from a multi-threaded server?

    For example client[1], client[2] etc., How to assign ID's for each client?
    Someone told me that you should use threadid as clientid, is this a right approach?
    3.How to simulate a document being printed ?
    Any help would be highly appreciated!

  2. #2
    Registered User
    Join Date
    Oct 2014
    Posts
    2
    What this have something to do with CUPS Programming?
    https://www.cups.org/documentation.p...-overview.html
    https://www.cups.org/index.php

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. print out to a printer, need help
    By IXxAlnxXI in forum C++ Programming
    Replies: 1
    Last Post: 03-25-2007, 01:24 AM
  2. Print Spooler
    By Mario F. in forum Tech Board
    Replies: 2
    Last Post: 11-30-2006, 10:58 PM
  3. Print pdf to network printer
    By rkooij in forum C Programming
    Replies: 9
    Last Post: 11-02-2006, 08:33 AM
  4. printing on network printer
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 10-21-2001, 02:10 PM
  5. Print to the printer
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 10-18-2001, 10:22 AM

Tags for this Thread