public override bool Start() { try { Sock.BeginConnect(IP, SocketSettings.TcpPort, ConnectionCallback, null); State = SocketState.Started; } catch (Exception ex) { EventProvider.ExecuteErrorHandler(ex, SocketErrorLocation.BeginStart); return(false); } return(true); }
public void ConnTo() { Sock.BeginConnect(Host, Port); }