public void Connect(int retries = 10, int wait = 1000, int flushSeconds = 2) { ConnectToSocketAndBeginReceive(IQSocket.GetSocket()); Send("S,CONNECT\r\n"); for (int i = 0; i < retries; i++) { if (_status.connected) { return; } Thread.Sleep(wait); } throw new Exception("Timeout: No Connect message received from IQFeed"); }
// Command Requests public void Connect() { ConnectToSocketAndBeginReceive(IQSocket.GetSocket()); }
public void Connect() { ConnectToSocketAndBeginReceive(IQSocket.GetSocket()); Send("S,CONNECT\r\n"); }