Skip to content

Instantly share code, notes, and snippets.

View xp4xbox's full-sized avatar
🏠
Working from home

xp4xbox

🏠
Working from home
  • Ottawa, Ontario, Canada
View GitHub Profile
@marvin
marvin / client.py
Created December 17, 2012 13:50
simple python client/server socket binary stream
import socket
HOST = 'localhost'
PORT = 9876
ADDR = (HOST,PORT)
BUFSIZE = 4096
videofile = "videos/royalty-free_footage_wien_18_640x360.mp4"
bytes = open(videofile).read()