Exemplo n.º 1
0
 /**
  * The a particular socket's connection failed
  * This function will call all substreams disconnected methods
  */
 template <class ErrorCode> void hostDisconnectedCallback(const ASIOSocketWrapper* whichSocket, const ErrorCode &error) {
     unsigned int which=0;
     for (std::vector<ASIOSocketWrapper>::iterator i=mSockets.begin(),ie=mSockets.end(); i!=ie; ++i,++which) {
         if (&*i==whichSocket)
             break;
     }
     hostDisconnectedCallback(which==mSockets.size()?0:which,error.message());
 }
Exemplo n.º 2
0
 /**
  * The a particular socket's connection failed
  * This function will call all substreams disconnected methods
  */
 template <class ErrorCode> void hostDisconnectedCallback(unsigned int whichSocket, const ErrorCode& error) {
     hostDisconnectedCallback(whichSocket,error.message());
 }
Exemplo n.º 3
0
void MultiplexedSocket::hostDisconnectedCallback(unsigned int whichSocket, const std::string& error) {
    hostDisconnectedCallback(error);
    //FIXME do something with the socket specifically that failed.
}