Index: common/Common.h
===================================================================
--- common/Common.h	(revision da692b936e00876c83e39b429338dad295a6c4d4)
+++ common/Common.h	(revision da692b936e00876c83e39b429338dad295a6c4d4)
@@ -0,0 +1,12 @@
+#ifndef _COMMON_H
+#define _COMMON_H
+
+void set_nonblock(int sock)
+{
+    int flags;
+    flags = fcntl(sock, F_GETFL,0);
+    assert(flags != -1);
+    fcntl(sock, F_SETFL, flags | O_NONBLOCK);
+}
+
+#endif
