摘要 |
In a computer network system, data packets are transmitted to a designated network port. A port sharing protocol enables multiple applications to listen to the same port. Each interested application attempts to bind to the port. The first application to successfully bind to the port is deemed the "primary" application, and all remaining applications are deemed "secondary" applications. The secondary applications register themselves with the primary application by submitting their IP addresses and a port number of the port. The primary application adds the secondary applications to a distribution list. The primary application listens for incoming packets delivered over the port. When a packet is received, the primary application sends a copy of the packet to each secondary application on the distribution list. The primary and secondary applications are then free to consume the packets for their own purposes. As a result, multiple applications are able to receive the same data packets received over one port.
|