Thread: How get data acquisition from printer using winsock?

  1. #1
    Registered User
    Join Date
    Apr 2008

    Unhappy How get data acquisition from printer using winsock?

    Please give me idea how get data/printer information from printer ?

    That printer information such as Product Name,Printer name, Model Number,Printer Serial Number etc.I think using recv and recv function, but don't know how to use it?

    iResult = recv(ConnectSocket, recvbuf, recvbuflen, 0);
    printf("Printer Address",iResult);
    printf("Model Number",iResult);
    printf("Printer Serial Number ",iResult);
    Please give me idea thanks.....

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    Most likely the printer will have capability of sending back a message with information like that, but you would need to know what you should send to the printer to "ask who are you", and most likely, that would dpeend on the actual printer manufacturer (or at least which printing language it's using, e.g. postscript will behave in a different way than a HP PCL printer).

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bitmasking Problem
    By mike_g in forum C++ Programming
    Replies: 13
    Last Post: 11-08-2007, 12:24 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. All u wanted to know about data types&more
    By SAMSAM in forum Windows Programming
    Replies: 6
    Last Post: 03-11-2003, 03:22 PM
  4. C Programming Question
    By TK in forum A Brief History of
    Replies: 13
    Last Post: 07-04-2002, 07:11 PM
  5. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM