GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — stepbystep-python/basicpython/101/socket/udpclient.py at master · simonpatrick/stepbystep-python Expand file tree/ Copy pathudpclient.pyMore file actions 15 lines (12 loc) · 303 Bytes / Copy pathudpclient.pyFile metadata and controls15 lines (12 loc) · 303 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #!/usr/bin/env python # -*- coding: UTF-8 -*- import socket HOST='192.168.0.100' PORT=50001 BUFFER=4096 sock=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) sock.connect((HOST,PORT)) sock.send('hello, udpServer!') recv=sock.recv(BUFFER) print('[udpServer said]: %s' % recv) sock.close() |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |