+
+
+#ifdef __WXGTK__
+ if (m_neededreq & (REQ_ACCEPT | REQ_READ | REQ_LOST))
+ {
+ if (m_internal->sock_inputid <= 0)
+ {
+ m_internal->sock_inputid = gdk_input_add(m_fd, GDK_INPUT_READ,
+ wx_socket_read, (gpointer)this);
+ }
+ }
+ else
+ {
+ if (m_internal->sock_inputid > 0)
+ {
+/*
+ gdk_input_remove(m_internal->sock_inputid);
+ m_internal->sock_inputid = 0;
+*/
+ }
+ }
+
+ if (m_neededreq & (REQ_CONNECT | REQ_WRITE))
+ {
+ if (m_internal->sock_outputid <= 0)
+ {
+ m_internal->sock_outputid = gdk_input_add(m_fd, GDK_INPUT_WRITE,
+ wx_socket_write, (gpointer)this);
+ }
+ }
+ else
+ {
+ if (m_internal->sock_outputid > 0)
+ {
+/*
+ gdk_input_remove(m_internal->sock_outputid);
+ m_internal->sock_outputid = 0;
+*/
+ }