Check POLLHUP semantics at remote shutdown when wineserver is started.
Fix socket state handling and event handling for non-STREAM sockets.

diff --git a/server/object.h b/server/object.h
index 34f8398..b1bd53f 100644
--- a/server/object.h
+++ b/server/object.h
@@ -172,6 +172,10 @@
 
 int get_serial_async_timeout(struct object *obj, int type, int count);
 
+/* socket functions */
+
+extern void sock_init(void);
+
 /* debugger functions */
 
 extern int set_process_debugger( struct process *process, struct thread *debugger );