]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/inspsocket.h
Add basic stuff for protocol interface and implement a couple of the methods. It...
[user/henk/code/inspircd.git] / include / inspsocket.h
index 77c283f7fcb9109f9fe9333089593a62aadbf521..af93baa56f409fec74bcaa6e50ffa3ce9593b0e2 100644 (file)
@@ -318,7 +318,7 @@ class CoreExport BufferedSocket : public EventHandler
         * into a char* array which can be up to
         * 16 kilobytes in length.
         */
-       virtual char* Read();
+       virtual const char* Read();
 
        /**
         * Returns the IP address associated with
@@ -332,7 +332,7 @@ class CoreExport BufferedSocket : public EventHandler
         * returns or linefeeds are appended to the string.
         * @param data The data to send
         */
-       virtual int Write(const std::string &data);
+       virtual void Write(const std::string &data);
 
        /**
         * If your socket is a listening socket, when a new
@@ -406,17 +406,6 @@ class CoreExport BufferedSocket : public EventHandler
         */
        virtual bool DoConnect();
 
-       /**
-        * This method marks the socket closed.
-        * The next time the core examines a socket marked
-        * as closed, the socket will be closed and the 
-        * memory reclaimed.
-        *
-        * NOTE: This method is DEPRECIATED and will be
-        * ignored if called!
-        */
-       void MarkAsClosed();
-
        /** Handle event from EventHandler parent class
         */
        void HandleEvent(EventType et, int errornum = 0);