]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socketengines/socketengine_ports.cpp
Merge pull request #338 from ChrisTX/insp20+iostream
[user/henk/code/inspircd.git] / src / socketengines / socketengine_ports.cpp
index 648ad3ac103007923b89e46cf38fad3e1db7be68..9a86c47d0cd915b6f597a35a026c41e91ec22ad3 100644 (file)
@@ -36,6 +36,7 @@
 #include "inspircd.h"
 #include "socketengine.h"
 #include <port.h>
+#include <iostream>
 
 /** A specialisation of the SocketEngine class, designed to use solaris 10 I/O completion ports
  */
@@ -47,7 +48,6 @@ private:
        port_event_t* events;
 public:
        /** Create a new PortsEngine
-        * @param Instance The creator of this object
         */
        PortsEngine();
        /** Delete a PortsEngine
@@ -76,7 +76,7 @@ PortsEngine::PortsEngine()
        else
        {
                ServerInstance->Logs->Log("SOCKET", DEFAULT, "ERROR: Can't determine maximum number of open sockets!");
-               printf("ERROR: Can't determine maximum number of open sockets!\n");
+               std::cout << "ERROR: Can't determine maximum number of open sockets!" << std::endl;
                ServerInstance->Exit(EXIT_STATUS_SOCKETENGINE);
        }
        EngineHandle = port_create();
@@ -85,8 +85,8 @@ PortsEngine::PortsEngine()
        {
                ServerInstance->Logs->Log("SOCKET",SPARSE,"ERROR: Could not initialize socket engine: %s", strerror(errno));
                ServerInstance->Logs->Log("SOCKET",SPARSE,"ERROR: This is a fatal error, exiting now.");
-               printf("ERROR: Could not initialize socket engine: %s\n", strerror(errno));
-               printf("ERROR: This is a fatal error, exiting now.\n");
+               std::cout << "ERROR: Could not initialize socket engine: " << strerror(errno) << std::endl;
+               std::cout << "ERROR: This is a fatal error, exiting now." << std::endl;
                ServerInstance->Exit(EXIT_STATUS_SOCKETENGINE);
        }
        CurrentSetSize = 0;