Created
April 10, 2015 17:09
-
-
Save Averroes/2a6fc54f5129ffe46458 to your computer and use it in GitHub Desktop.
creating a udp server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from socket import socket, AF_INET, SOCK_DGRAM | |
| s = socket(AF_INET, SOCK_DGRAM) | |
| s.sendto(b'', ('localhost', 20000)) | |
| print(s.recvfrom(8192)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment