Skip to content

Instantly share code, notes, and snippets.

View Aareon's full-sized avatar
💭
Looking for work!

Aareon Sullivan Aareon

💭
Looking for work!
  • Amazon Ops Tech IT
  • Mississippi
  • 21:31 (UTC -06:00)
View GitHub Profile
import socket
import pyaudio
# Socket
HOST = socket.gethostbyname(socket.gethostname())
# Use this instead if connecting from another computer
# HOST = 'enter server IPV4 here'
PORT = 5000
# Audio
@Aareon
Aareon / unicorn-socketserver.py
Last active December 13, 2018 19:07 — forked from jacobian/unicorn-socketserver.py
A simple preforking echo server using SocketServer.
import os
import socketserver
"""
Simple forking echo server built with Python's SocketServer library. A more
Pythonic version of http://gist.github.com/203520, which itself was inspired
by http://tomayko.com/writings/unicorn-is-unix.
"""