Changeset 6326
- Timestamp:
- 06/17/08 15:41:52 (6 months ago)
- Location:
- trunk/licq
- Files:
-
- 2 modified
-
include/licq_user.h (modified) (1 diff)
-
src/user.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/licq/include/licq_user.h
r6301 r6326 903 903 // Don't call these: 904 904 int SocketDesc(unsigned char); 905 void ClearSocketDesc(); 906 void ClearSocketDesc(unsigned char); 905 void ClearSocketDesc(unsigned char nChannel = 0x00); 907 906 void SetSocketDesc(TCPSocket *); 908 907 -
trunk/licq/src/user.cpp
r6324 r6326 2764 2764 } 2765 2765 2766 2767 void ICQUser::ClearSocketDesc()2768 {2769 m_nNormalSocketDesc = m_nInfoSocketDesc = m_nStatusSocketDesc = -1;2770 m_nLocalPort = 0;2771 m_nConnectionVersion = 0;2772 m_bSecure = false;2773 2774 if (gLicqDaemon != NULL && m_bOnContactList)2775 gLicqDaemon->PushPluginSignal(new CICQSignal(SIGNAL_UPDATExUSER,2776 USER_SECURITY, m_szId, m_nPPID, 0));2777 }2778 2779 2766 void ICQUser::ClearSocketDesc(unsigned char nChannel) 2780 2767 { … … 2790 2777 m_nStatusSocketDesc = -1; 2791 2778 break; 2779 case 0x00: // Used as default value to clear all socket descriptors 2780 m_nNormalSocketDesc = m_nInfoSocketDesc = m_nStatusSocketDesc = -1; 2781 break; 2792 2782 default: 2793 2783 gLog.Info("%sUnknown channel %u\n", L_WARNxSTR, nChannel); 2794 2784 return; 2795 2785 } 2796 if ((m_nStatusSocketDesc == -1) && (m_nInfoSocketDesc == -1) && (m_nNormalSocketDesc == -1)) 2797 ClearSocketDesc(); 2798 else if (gLicqDaemon != NULL && m_bOnContactList) 2786 2787 if (m_nStatusSocketDesc == m_nInfoSocketDesc == m_nNormalSocketDesc == -1) 2788 { 2789 m_nLocalPort = 0; 2790 m_nConnectionVersion = 0; 2791 m_bSecure = false; 2792 } 2793 2794 if (gLicqDaemon != NULL && m_bOnContactList) 2799 2795 gLicqDaemon->PushPluginSignal(new CICQSignal(SIGNAL_UPDATExUSER, USER_SECURITY, m_szId, m_nPPID, 0)); 2800 2796 }
