What is the difference between a port and a socket?

后端 未结 30 2011
旧巷少年郎
旧巷少年郎 2020-11-22 14:31

This was a question raised by one of the software engineers in my organisation. I\'m interested in the broadest definition.

30条回答
  •  爱一瞬间的悲伤
    2020-11-22 15:18

    A socket = IP Address + a port (numeric address)
    Together they identify an end-point for a network connection on a machine. (Did I just flunk network 101?)

提交回复
热议问题