Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1.         switch(IRCSocket.connect(m_server, m_port))
  2.         {
  3.         case SocketTcp::Status::Done:
  4.             return;
  5.         case SocketTcp::Status::Error:
  6.             throw AsuIRC::exception::socket_error;
  7.         case SocketTcp::Status::Disconnected:
  8.             throw AsuIRC::exception::socket_disconnected;
  9.         case SocketTcp::Status::NotReady:
  10.             cout << "Keep going!" << endl;
  11.             continue;
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement