Index: common/Common.h
===================================================================
--- common/Common.h	(revision 3b1efcc97deda61383fe1470d63eb56b0e172045)
+++ common/Common.h	(revision 3b1efcc97deda61383fe1470d63eb56b0e172045)
@@ -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
