1234567891011121314151617181920212223242526272829303132333435 |
- using System;
- using Sers.CL.Socket.Iocp.Base;
- using Vit.Core.Module.Log;
- namespace Sers.CL.Socket.Iocp.Mode.Simple
- {
- public class DeliveryClient : DeliveryClient_Base<DeliveryConnection>
- {
-
- public override bool Connect()
- {
- try
- {
- Logger.Info("[CL.DeliveryClient] Socket.Iocp,connecting", new { host, port });
- if (!base.Connect())
- {
- return false;
- }
- Logger.Info("[CL.DeliveryClient] Socket.Iocp,connected");
- return true;
- }
- catch (Exception ex)
- {
- Logger.Error(ex);
- }
- return false;
- }
- }
- }
|