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