public List <UidlItem> GetUidl() { lock (this) { NetworkStream siso = sock.GetStream(); SL.WriteLine(siso, "UIDL"); if ((resp = Resp.ReadFrom(siso)).Ok != true) { throw new CommandFailedException(); } List <UidlItem> al = new List <UidlItem>(); while (true) { string s = RL.ReadLine(siso); if (s.StartsWith(".")) { break; } string[] cols = s.Split(' '); UidlItem o = new UidlItem(); o.i = int.Parse(cols[0]); o.uidl = cols[1]; al.Add(o); } return(al); } }
public List<UidlItem> GetUidl() { lock (this) { NetworkStream siso = sock.GetStream(); SL.WriteLine(siso, "UIDL"); if ((resp = Resp.ReadFrom(siso)).Ok != true) throw new CommandFailedException(); List<UidlItem> al = new List<UidlItem>(); while (true) { string s = RL.ReadLine(siso); if (s.StartsWith(".")) break; string[] cols = s.Split(' '); UidlItem o = new UidlItem(); o.i = int.Parse(cols[0]); o.uidl = cols[1]; al.Add(o); } return al; } }