[Pythonjp-checkins] [python-doc-ja] push by cocoa****@gmail***** - library/socketserver.rst translation completed on 2011-03-30 17:09 GMT

Back to archive index

pytho****@googl***** pytho****@googl*****
2011年 3月 31日 (木) 02:10:46 JST


Revision: c675af9fe0e3
Author:   cocoatomo <cocoa****@gmail*****>
Date:     Wed Mar 30 10:09:37 2011
Log:      library/socketserver.rst translation completed
http://code.google.com/p/python-doc-ja/source/detail?r=c675af9fe0e3

Modified:
  /library/socketserver.rst

=======================================
--- /library/socketserver.rst	Thu May 13 19:30:59 2010
+++ /library/socketserver.rst	Wed Mar 30 10:09:37 2011
@@ -440,9 +440,9 @@
             socket.sendto(data.upper(), self.client_address)

     if __name__ == "__main__":
-      HOST, PORT = "localhost", 9999
-      server = SocketServer.UDPServer((HOST, PORT), MyUDPHandler)
-      server.serve_forever()
+       HOST, PORT = "localhost", 9999
+       server = SocketServer.UDPServer((HOST, PORT), MyUDPHandler)
+       server.serve_forever()

  .. This is the client side::

@@ -451,7 +451,7 @@
     import socket
     import sys

-   HOST, PORT = "localhost"
+   HOST, PORT = "localhost", 9999
     data = " ".join(sys.argv[1:])

     # SOCK_DGRAM is the socket type to use for UDP sockets




Pythonjp-checkins メーリングリストの案内
Back to archive index