Method for discovering a network printer by assigning dedicated sockets to different printer types and polling the dedicated sockets to learn the corresponding state
First Claim
1. A method for discovering a printer of a printer type in a network, the method comprising the steps of:
- establishing a socket having a socket identifier (ID) associated with the printer type, the network communicating with the printer through the socket, the socket having a poll mode and a listen mode, the socket when in the poll mode awaiting and obtaining outgoing data from the network tagged with the socket ID and sending the obtained outgoing data to the printer, the socket when in the listen mode awaiting and obtaining incoming data from the printer and sending the obtained incoming data to the network;
establishing a printer information object for storing printer information associated with the printer once the printer is discovered, the network maintaining and updating the printer information therewith;
establishing a timer providing a periodic timing signal TICK;
periodically polling for the printer once every N TICKs, each polling step comprising the steps of;
placing the socket in the poll mode;
sending polling data tagged with the socket ID to the socket for receipt by the printer;
placing the socket in the listen mode; and
waiting to determine whether the socket has obtained printer data from the printer;
if the socket has obtained printer data from the printer, determining from the printer information object whether the printer has been previously discovered based on whether the printer information object has stored printer information for the printer; and
if the printer has not been previously discovered, creating printer information for the printer and storing the created printer information in the printer information object.
2 Assignments
0 Petitions
Accused Products
Abstract
The present invention discovery of a printer having a particular printer type in a network is disclosed. A socket having a socket identifier (ID)) associated with the printer type is provided to allow communication between the network and the printer. In a socket poll mode, the socket awaits and obtains outgoing data from the network tagged with the socket ID and sends the obtained outgoing data to the printer. In a socket listen mode, the socket awaits and obtains incoming data from the printer and sends the obtained incoming data to the network. A printer information object is provided for storing printer information associated with the printer once the printer is discovered. A timer provides a periodic timing signal TICK. The printer is periodically polled once every N TICKs. During each poll, the socket is placed in the poll mode, polling data is sent to the socket for receipt by the printer, the socket is placed in the listen mode, and a determination is made of whether the socket has obtained printer data from the printer. If printer data is obtained, it is determined whether the printer has been previously discovered based on whether the printer information object has stored printer information for the printer. If not previously discovered, printer information for the printer is created and stored in the printer information object.
92 Citations
6 Claims
-
1. A method for discovering a printer of a printer type in a network, the method comprising the steps of:
-
establishing a socket having a socket identifier (ID) associated with the printer type, the network communicating with the printer through the socket, the socket having a poll mode and a listen mode, the socket when in the poll mode awaiting and obtaining outgoing data from the network tagged with the socket ID and sending the obtained outgoing data to the printer, the socket when in the listen mode awaiting and obtaining incoming data from the printer and sending the obtained incoming data to the network; establishing a printer information object for storing printer information associated with the printer once the printer is discovered, the network maintaining and updating the printer information therewith; establishing a timer providing a periodic timing signal TICK; periodically polling for the printer once every N TICKs, each polling step comprising the steps of; placing the socket in the poll mode; sending polling data tagged with the socket ID to the socket for receipt by the printer; placing the socket in the listen mode; and waiting to determine whether the socket has obtained printer data from the printer; if the socket has obtained printer data from the printer, determining from the printer information object whether the printer has been previously discovered based on whether the printer information object has stored printer information for the printer; and if the printer has not been previously discovered, creating printer information for the printer and storing the created printer information in the printer information object. - View Dependent Claims (2, 3, 4, 5, 6)
-
Specification