| IO :: nonblocking. ºñ Â÷´Ü IO ¼¹ö ±¸Çö¿¡ ´ëÇÑ °´Ã¼ ÁöÇâ ÀÎÅÍÆäÀ̽º. |
Áö±Ý ´Ù¿î·Îµå |
IO :: nonblocking. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Komtanoo Pinpimai
IO :: nonblocking. ű×
IO :: nonblocking. ¼³¸í
ºñ Â÷´Ü IO ¼¹ö ±¸Çö¿¡ ´ëÇÑ °´Ã¼ ÁöÇâ ÀÎÅÍÆäÀ̽º. IO :: BlockingÀº Â÷´ÜµÇÁö ¾Ê´Â IO ¼¹ö ±¸Çö¿¡ ´ëÇÑ °´Ã¼ ÁöÇâ ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù .Synopsis ÆÐÅ°Áö fooserver; io :: nonblocking; ¾ö°ÝÇÑ »ç¿ë; VARS QW (@ISA)¸¦ »ç¿ëÇϽʽÿÀ. @ isa = qw (io : nonblocking); »õ {My $ class = ref ($ _ ) || $ _ ; ³» $ self = io :: nonblocking-> new ({server_name => fooserver ', port => 52721, timeout => 300, piddir =>'/ tmp '}); $ self, $ class¸¦ ÃູÇϽʽÿÀ; } sub onClientConnected {My $ self = shift; ³» $ CLIENT = SHIFT; $ self-> getip ($ Ŭ¶óÀ̾ðÆ®), ":", $ self-> getPort ($ client) "¸¦ ÀμâÇϽʽÿÀ. ";} sub onClientDisconnected {my $ self = shift; my $ client = shift; Àμâ" ";} 1; ÆÐÅ°Áö ¸ÞÀÎ; MY $ OBJ = FOSERVER-> »õ·Î¿î; $ obj-> ½ÃÀÛ; io :: nonblockingÀº ºñ Â÷´Ü IO ¼¹ö ½ºÅ¸ÀÏÀ̸ç, ºñ Â÷´Ü IO °¡´É OS - ´ëºÎºÐÀÇ UNIX ¹× º¹Á¦ µÈ Ç÷§Æû. Tom ChristiansenÀÇ Perl Classic Cook BookÀÇ ÄÚµå ÆäÀÌÁö¿¡ ±âÃÊ°¡ÀÖ´Â ºñ Â÷´Ü ¼¹ö ¿£ÁøÀÌ ÀÛ¼ºµÇ¾ú½À´Ï´Ù. IO :: MultiplexÀÇ °æÇèÀÌ ÀÖÀ¸¸é ¸ðµâÀÌ È¿À²¼ºÀÌ ¶³¾îÁö´Â °ÍÀ» ¾Ë ¼ö ÀÖ½À´Ï´Ù. ÀÌÈÄ io- ´ÙÁßÈ°¡ ¸ðµç Ŭ¶óÀ̾ðÆ®°¡ ÀÚ½ÅÀÇ µ¥ÀÌÅ͸¦ õõÈ÷ º¸³¾ ¶§ ºí·ÏÀ» Â÷´ÜÇÕ´Ï´Ù. óÀ½¿¡´Â ¸ðµâÀ» ¸¹ÀÌ °¨»çÇÏ°ÔÇßÁö¸¸ »ç¿ëÀÚ°¡ Áõ°¡ÇÏ¸é ¸ðµç °ÍÀÌ ´Ê¾î Á³À» ¶§, ³ª´Â ¸ðµâ¿¡ ¸¹Àº ¿¸Å¾ø´Â °³¼±À» ½ÃµµÇßÀ¸¸ç ¸ðµâ¿¡ ¸¹Àº ¿¸Å¾ø´Â °³¼±À» ½ÃµµÇßÀ¸¸ç, ¸ðµâ¿¡ ¸¹Àº ¿¸Å¾ø´Â °³¼±À» ½ÃµµÇßÀ¸¸ç, ¸ðµâ¿¡ ¸¹Àº ¿¸Å¾ø´Â °³¼±À» ½ÃµµÇßÀ¸¸ç, ¸ðµâ¿¡ ¸¹Àº ¿¸Å¾ø´Â °³¼±À» ½ÃµµÇß°í, ¸ðµâ¿¡ ¸¹Àº ¾çÀÇ °³¼±À» ½ÃµµÇß°í, ÀüÇô ÀÏÇϽʽÿÀ. ¸¹Àº ¹ã¿¡ ±¤¾÷À» ¸¶Ä£ ÈÄ CPAN¿¡ÀÖ´Â ºñ Â÷´Ü ¼¹ö ¸ðµâÀÌ Á¸ÀçÇÏÁö ¾Ê´Â´Ù´Â °ÍÀ» ¾Ë°ÔµÇ¾úÀ½À» ±ú´Þ¾Ò½À´Ï´Ù. ¸¶Áö¸·À¸·Î ¿ä¸® Ã¥¿¡¼ ÇÙ½É Äڵ带 º¹»çÇߴµ¥ ù ¹ø°·Î´Â ¸Å·Âó·³ ÀÛµ¿Çß½À´Ï´Ù. ±×·³¿¡µµ ºÒ±¸ÇÏ°í ÄÚµå´Â ³» ¼¹ö¸¦ ÁߴܽÃÅ°´Â ¸î °¡Áö ¹ö±×°¡ ÀÖÁö¸¸, ³ª´Â ±×°ÍÀ» °íÄ¡°í relÀ» °áÁ¤Çϱâ À§ÇØ ¸¹Àº À¯¿ëÇÑ ±â´ÉÀ» Ãß°¡Çß½À´Ï´Ù. ±×°ÍÀ» CPAN¿¡ ¸ðµâ·Î ½±°Ô ´ÛÀ¸½Ê½Ã¿À. ¿ä±¸ »çÇ× : ¡¤ Perl.
IO :: nonblocking. °ü·Ã ¼ÒÇÁÆ®¿þ¾î