Creating an Implicitly Bound Socket

This topic describes how create an implicitly bound socket.

  • An application opens a socket using the default interface connection and binds to a port and IP address of the connection. The application receives inbound traffic only from the interface the socket is bound to.

    For example, an application opens an implicit UDP socket and listens on port 8000. The UDP socket binds to interface IP address 10.253.4.134 . The UDP socket must receive data packets from this interface only.

  • If an application opens a socket and does not bind to a port or IP address of the default interface connection, then the application receives inbound traffic from multiple interfaces.

    For example, if an application opens an implicit UDP socket and does not bind the port 8000 to the IP address of the default interface connection, then the application receives inbound traffic from all the interfaces.

Implicit binding example

Client B creates a socket with implicit binding without specifying the interface connection.

       
        
       
       server = RSocketServ.Connect();
socket1 = RSocket.Open(server);
      

ESock creates the socket within the default connection and subconnection.

Related concepts
Socket Binding