Created
January 14, 2018 17:16
-
-
Save noxasch/4732b15cca139f9d76aa1c0593b4f873 to your computer and use it in GitHub Desktop.
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
| import socket | |
| s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
| while True: | |
| message = input("Enter your message: ") | |
| s.sendto(message.encode('utf-8'), ('localhost', 9000)) | |
| s.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment