Example #1
0
 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");
 }
Example #2
0
 // Command Requests
 public void Connect()
 {
     ConnectToSocketAndBeginReceive(IQSocket.GetSocket());
 }
Example #3
0
 public void Connect()
 {
     ConnectToSocketAndBeginReceive(IQSocket.GetSocket());
     Send("S,CONNECT\r\n");
 }