Seems suitable for this case, I would have a look at SocketPolicy.