support for DONTWAIT in nn.recv()
beginnings of a beautiful scheduler