add listener types to .net.Server and .net.Socket