3 Replies
      Latest reply on Oct 1, 2019 5:49 AM by eskimo
      liang.zhou Level 1 Level 1 (0 points)

        Hello,

        I'd like to check if a process opens any ip socket given a process id. I don't need to know what ports the process opens and how many. An yes-or-no answer is enough. Is there a quick and efficient API to check that? Thanks!

        • Re: Check if a process is connected to network
          eskimo Apple Staff Apple Staff (12,035 points)

          I need to clarify your requirements here.  Do you want to:

          • Determine what TCP/IP ‘connections’ the process has open right now?

          • Determine whether the process has ever opened a TCP/IP connection?

          • Be notified if the process opens a TCP/IP connection?

          • Be able to block such TCP/IP connections?

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"