/// <summary> /// 创建socket监听&服务组件 /// </summary> /// <returns></returns> protected override bool CreateListener() { if (IsCreate == true || pListener != IntPtr.Zero || pClient != IntPtr.Zero) { return(false); } pListener = HttpSdk.Create_HP_HttpClientListener(); if (pListener == IntPtr.Zero) { return(false); } pClient = HttpSdk.Create_HP_HttpClient(pListener); if (pClient == IntPtr.Zero) { return(false); } IsCreate = true; return(true); }