| AnyEvent :: MPRPC. °£´ÜÇÑ TCP ±â¹Ý MPRPC Ŭ¶óÀ̾ðÆ® / ¼¹ö |
Áö±Ý ´Ù¿î·Îµå |
AnyEvent :: MPRPC. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- MATSUNO Tokuhiro
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~tokuhirom/Sledge-Plugin-TmplParamsBinder-0.01/lib/Sledge/Plugin/TmplParamsBinder.pm
AnyEvent :: MPRPC. ű×
AnyEvent :: MPRPC. ¼³¸í
AnyEvent :: MPRPC´Â TCP ±â¹Ý MessagePack RPC / Client ±¸ÇöÀ» Á¦°øÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. AnyEvent :: MPRPC´Â AnyEvent :: MPRPC :: Client ¹× AnyEvent :: MPRPC :: ServerÀÇ ¹Ù·Î °¡±â°¡µÇ´Â ¸î °¡Áö ³»º¸³»±â ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù. ...¿¡ Çϳª´Â Ŭ¶óÀ̾ðÆ®¸¦À§ÇÑ mprpc_clientÀÌ°í, ´Ù¸¥ »ç¶÷Àº mprpc_server for server.synopsis anyEvent :: mprpc¸¦ »ç¿ëÇÕ´Ï´Ù. MY $ Server = MPRPC_Server '127.0.0.1', '4423'; $ Server-> reg_cb (eCho => sub {my ($ res_cv, @params) = @_; $ res_cv-> °á°ú (@params);},); MY $ CLIENT = MPRPC_CLIENT '127.0.0.1', '4423'; ³» $ d = $ Client-> ÅëÈ (echo => 'foo bar'); MY $ RES = $ D-> RECV; # => 'foo bar'; Á¦Ç°ÀÇ È¨ÆäÀÌÁö
AnyEvent :: MPRPC. °ü·Ã ¼ÒÇÁÆ®¿þ¾î