Skip to content

Instantly share code, notes, and snippets.

View frozendevil's full-sized avatar

Izzy frozendevil

View GitHub Profile
@frozendevil
frozendevil / gist:4116647
Created November 20, 2012 07:53
Talking to sockets through dispatch_io_read
//
// ACAppDelegate.m
// SocketTest
//
// Created by Izzy Fraimow on 11/19/12.
//
#import "ACAppDelegate.h"
#include <arpa/inet.h>
#!/usr/bin/env python
import subprocess
import sys
results = []
if not sys.stdin.isatty():
input_stream = sys.stdin