]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/sckipc.h
Added wxRichTextTableBlock class to help with table UI operations
[wxWidgets.git] / include / wx / sckipc.h
index 205366d40b4b6ac172ab7267510b16501a592a39..3801da8cf96f5e309973aecf0b700043aa403e06 100644 (file)
@@ -1,12 +1,11 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        sckipc.h
+// Name:        wx/sckipc.h
 // Purpose:     Interprocess communication implementation (wxSocket version)
 // Author:      Julian Smart
 // Modified by: Guilhem Lavaux (big rewrite) May 1997, 1998
 //              Guillermo Rodriguez (updated for wxSocket v2) Jan 2000
 //                                  (callbacks deprecated)    Mar 2000
 // Created:     1993
-// RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart 1993
 //              (c) Guilhem Lavaux 1997, 1998
 //              (c) 2000 Guillermo Rodriguez <guille@iies.es>
@@ -52,6 +51,8 @@
 class WXDLLIMPEXP_FWD_NET wxTCPServer;
 class WXDLLIMPEXP_FWD_NET wxTCPClient;
 
+class wxIPCSocketStreams;
+
 class WXDLLIMPEXP_NET wxTCPConnection : public wxConnectionBase
 {
 public:
@@ -85,11 +86,19 @@ protected:
                           wxIPCFormat format);
 
 
-    wxSocketBase       *m_sock;
-    wxSocketStream     *m_sockstrm;
-    wxDataInputStream  *m_codeci;
-    wxDataOutputStream *m_codeco;
-    wxString            m_topic;
+    // notice that all the members below are only initialized once the
+    // connection is made, i.e. in MakeConnection() for the client objects and
+    // after OnAcceptConnection() in the server ones
+
+    // the underlying socket (wxSocketClient for IPC client and wxSocketServer
+    // for IPC server)
+    wxSocketBase *m_sock;
+
+    // various streams that we use
+    wxIPCSocketStreams *m_streams;
+
+    // the topic of this connection
+    wxString m_topic;
 
 private:
     // common part of both ctors
@@ -99,7 +108,7 @@ private:
     friend class wxTCPClient;
     friend class wxTCPEventHandler;
 
-    DECLARE_NO_COPY_CLASS(wxTCPConnection)
+    wxDECLARE_NO_COPY_CLASS(wxTCPConnection);
     DECLARE_DYNAMIC_CLASS(wxTCPConnection)
 };
 
@@ -122,7 +131,7 @@ protected:
     wxString m_filename;
 #endif // __UNIX_LIKE__
 
-    DECLARE_NO_COPY_CLASS(wxTCPServer)
+    wxDECLARE_NO_COPY_CLASS(wxTCPServer);
     DECLARE_DYNAMIC_CLASS(wxTCPServer)
 };