(self, bind=None)
| 113 | self.listeningSockets[ls.destination] = ls |
| 114 | |
| 115 | def startUDPSocket(self, bind=None): |
| 116 | if bind is None: |
| 117 | host = self.getListeningIP() |
| 118 | udpSocket = UDPSocket(host=host, announcing=True) |
| 119 | else: |
| 120 | if bind is False: |
| 121 | udpSocket = UDPSocket(announcing=False) |
| 122 | else: |
| 123 | udpSocket = UDPSocket(host=bind, announcing=True) |
| 124 | self.udpSockets[udpSocket.listening.host] = udpSocket |
| 125 | |
| 126 | def loop(self): |
| 127 | # defaults to empty loop if outbound connections are maxed |
no test coverage detected