void ServerConnection::StaticMsgCallback(AsyncOpPtr theOp, RefCountPtr theParam) { RecvMsgOp *anOp = (RecvMsgOp*)theOp.get(); ServerConnection *thisConnection = (ServerConnection*)theParam.get(); if(anOp->GetStatus()==WS_Success) thisConnection->MsgCallback(anOp->GetMsg()); }