| ±×¹° :: ÄÅ NET :: CUPS´Â ÄÅ (°øÅë UNIX Àμ⠽ýºÅÛ) ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
±×¹° :: ÄÅ ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Dracken Technology, Inc.
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~dhageman/Net-CUPS-0.55/lib/Net/CUPS.pm
±×¹° :: ÄŠű×
±×¹° :: ÄÅ ¼³¸í
Net :: Cups´Â ÄÅ (°øÅë UNIX Àμ⠽ýºÅÛ) ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù. Net :: Cups´Â ÄÅ (°øÅë UNIX Àμ⠽ýºÅÛ) ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù. Synopsis Net :: Cups; ³» $ cups = net :: cups-> new (); $ PRINTER = $ CUPS-> getDestination ( "LJ4200DN"); NET :: CUPS´Â °øÅë UNIX Àμ⠽ýºÅÛ¿¡ ´ëÇÑ °´Ã¼ ÁöÇâ ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù .TODSGetDestinationmy $ PRINTER = $ CUPS-> getDestination ($ printer_name);ÀÌ ¸Þ¼Òµå´Â À̸§À» °¡Á®¿É´Ï´Ù. ȹµæÇÏ´Â ÇÁ¸°ÅÍÀÇ ÇÁ¸°ÅÍ°¡ Á¸ÀçÇÏÁö ¾ÊÀ¸¸é Nothing Nothing.getDestinationsMy @Ponters = $ CUPS-> getDestinations ();ÀÌ ¸Þ¼Òµå´Â ÄÅ Server.getPasswordMy $ password = $ cups-> getPassword ($ ÇÁ·ÒÇÁÆ®)¿¡ ÇöÀç ±¸¼ºµÈ ´ë»ó ¹è¿À» ¹ÝȯÇÕ´Ï´Ù. ) ¾ÏÈ£ ÄݹéÀ» ÅëÇØ »ç¿ëÀڷκÎÅÍ ¾ÏÈ£¸¦ °Ë»öÇÏ´Â ¹æ¹ý. getppdmy $ ppd = $ cups-> getppd ($ name) ±âº» ÇÁ¸°ÅÍ ¶Ç´Â ÁöÁ¤µÈ ÇÁ¸°ÅÍ ¶Ç´Â class.getServermyÀÇ ±âº» ÇÁ¸°ÅÍ ¶Ç´Â ÁöÁ¤µÈ ÇÁ¸°ÅÍ ¶Ç´Â class.getServermy¿¡ ´ëÇÑ net :: cups :: ppd °´Ã¼¸¦ ¹ÝȯÇÕ´Ï´Ù. $ server_name = $ cups-> getServer (); È°¼º Print Server.getUsernamemy $ username = $ cups-> getUsername ()ÀÇ È£½ºÆ® À̸§ ¶Ç´Â IP ÁÖ¼Ò¸¦ ¹ÝȯÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù.ÀÌ ¸Þ¼Òµå´Â ´ÙÀ½°ú °ü·ÃµÈ ÇöÀç »ç¿ëÀÚ À̸§À» ¹ÝȯÇÕ´Ï´Ù. ÄÅ Transaction.RequestDatamy $ = $ ÄÅ -> requestData ($ ¿äû, $ ÀÚ¿ø, $ filename); ¼¹ö¿¡ IPP ¿äûÀ» º¸³À´Ï´Ù. ÀÌ ±â´ÉÀº C ÄÅ ±â´É CupsDoreQuest ¹× CupsDoreQuestFileÀ» ±â¹ÝÀ¸·ÎÇÕ´Ï´Ù. $ FILENAMEÀº ¼±ÅÃÀûÀÔ´Ï´Ù. SetPasswordCB $ CUPS-> SETPasswordCB ($ ÇÔ¼ö) ¸Þ¼µå´Â getPassword.setserver $ cups-> setserver ($ server_ip)¿¡¼ »ç¿ëÇÒ Äݹé ÇÔ¼ö¸¦ ¼³Á¤ÇÕ´Ï´Ù.ÀÌ ¹æ¹ýÀº ÇöÀç CUPS ¼¹ö¸¦ ´Ù¸¥ È£½ºÆ®·Î º¯°æÇÕ´Ï´Ù. . setUsername $ ÄÅ -> setUsername ($ username); ÄÅ »óÈ£ ÀÛ¿ë°ú °ü·ÃµÈ »ç¿ëÀÚ À̸§À» º¯°æÇÏ´Â ¹æ¹ý. ¿ä±¸ »çÇ× : ¡¤ Perl.
±×¹° :: ÄÅ °ü·Ã ¼ÒÇÁÆ®¿þ¾î