Beispiel #1
0
 private IEnumerable <MPMessage> receive()
 {
     foreach (MPMessage msg in PyNet.getNewMessages(address, -1, -1))
     {
         yield return(msg);
     }
 }
 public IEnumerable <T> receive(long fromFarmer = -1)
 {
     foreach (MPMessage msg in PyNet.getNewMessages(address, -1, fromFarmer))
     {
         yield return(deserialize((SerializationType)msg.type, msg.message));
     }
 }