void CClient::sendConnectionFailedEvent(const char* msg) { CFailInfo* info = new CFailInfo(msg); info->m_retry = true; CEvent event(getConnectionFailedEvent(), getEventTarget(), info, CEvent::kDontFreeData); EVENTQUEUE->addEvent(event); }
void CClient::sendConnectionFailedEvent(const char* msg) { CFailInfo* info = (CFailInfo*)malloc(sizeof(CFailInfo) + strlen(msg)); info->m_retry = true; strcpy(info->m_what, msg); sendEvent(getConnectionFailedEvent(), info); }
void CTCPSocket::sendConnectionFailedEvent(const char* msg) { CConnectionFailedInfo* info = (CConnectionFailedInfo*)malloc( sizeof(CConnectionFailedInfo) + strlen(msg)); strcpy(info->m_what, msg); EVENTQUEUE->addEvent(CEvent(getConnectionFailedEvent(), getEventTarget(), info)); }