Linuxã®ãããªUNIXç³»OSã§ã¯ï¼ãã¡ã¤ã«ã«å¯¾ããæä½ã¨åæ§ã«ãããã¯ã¼ã¯éä¿¡ãè¡ãããã«ï¼ãã½ã±ãããã¨å¼ã°ããä»çµã¿ã使ãã¾ããä»åã¯ã½ã±ããã«ã¤ãã¦å¦ã³ã¾ãããã ã³ã³ãã¥ã¼ã¿ã¯ãé»åè¨ç®æ©ãã¨ããååã示ãéãï¼æ¬æ¥ã¯é«éã«è¨ç®ããããã®æ©æ¢°ã§ããããããï¼ç¾å¨ã®ã³ã³ãã¥ã¼ã¿ã¯ï¼Webãã©ã¦ã¸ã³ã°ãé»åã¡ã¼ã«ã®ããåããªã©ã«ä½¿ããããã¨ãå¤ãï¼ãããã¯ã¼ã¯ã¨åãé¢ããã¨ãã§ãã¾ãããæè¿ã¯ãã³ã³ãã¥ã¼ã¿ã使ãããã¨ã¨ããããã¯ã¼ã¯ã使ããã¨ããããªãå義ã«ãªã£ã¦ããã®ã§ã¯ãªãã§ããããã ä»åã¯ï¼ãããã¯ã¼ã¯ãä»ããéä¿¡ã®åºç¤ã«ãªã£ã¦ãããã½ã±ãããã¨ããæ¦å¿µãç´¹ä»ãã¾ãã ãã£ã¹ã¯ãªãã¿ã§ã¢ã¯ã»ã¹ãåç´ã« ã½ã±ããã¯ãããã¯ã¼ã¯éä¿¡ã«ç¨ãããã¡ã¤ã«ã»ãã£ã¹ã¯ãªãã¿ï¼file descriptorï¼ã§ããããã§ï¼ã½ã±ããã®èª¬æã«å ¥ãåã«ï¼ããä¸è¬çãªãã¡ã¤ã«ã»ãã£ã¹ã¯ãªãã¿ã«ã¤
ä»äºã§ï¼ãã®ä»äºãèªåã«ã¾ãã£ã¦ãããã¨ã¯ãªãã ãããã©ï¼ï¼ ã½ã±ããéä¿¡ã®ããã°ã©ã ãå¿ è¦ã«ãªããããã®ã§ï¼ ã¡ãã£ã¨ Ruby ã§æ¸ãã¦ã¿ãï¼ ã¯ã©ã¤ã¢ã³ã #!/usr/bin/ruby require 'socket' s = TCPSocket.open("localhost", 12345) s.puts("test") s.close localhost ã® port 12345 ã§å¾ ã¡åãã¦ãããµã¼ãã«ï¼ "test" ã¨ããæååãéãï¼ ãµã¼ã #!/usr/bin/ruby require 'socket' require 'thread' gs = TCPServer.open(12345) addr = gs.addr addr.shift printf("server is on %s\n", addr.join(":")) while true Thread.
æ³¨ï¼ Rubyã¯2.1.0ããSemantic Versioningãæ¡ç¨ãã¦ãã¾ãã Ruby 2.1.1, 2.1.2çã¯ãã°ä¿®æ£ãã»ãã¥ãªãã£fixã®ã¿ãå«ãããããªãã¡ã¬ã³ã¹ã¨ãã¦ã¯2.1ã«çµ±ä¸ãã¦ãã¾ãã
æ³¨ï¼ Rubyã¯2.1.0ããSemantic Versioningãæ¡ç¨ãã¦ãã¾ãã Ruby 2.1.1, 2.1.2çã¯ãã°ä¿®æ£ãã»ãã¥ãªãã£fixã®ã¿ãå«ãããããªãã¡ã¬ã³ã¹ã¨ãã¦ã¯2.1ã«çµ±ä¸ãã¦ãã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}