|
Method to set up a socket and connect to it.
- Parameters:
-
| server | The address of a socket on which to serve the data. This address must be the same for both server and client. The value can be in one of the following forms:
- A number of which only the two lower decimal digits are used, i.e., in the range 0-99
- <port><multicast address>, where <port> is a value that will override what is found from the data type name translation, and <multicast address=""> is some valid multicast IP address starting with the value 239. A name may be used for the <multicast address=""> value as well, as long as it can be found in the name server and translates to a valid multicast IP address.
- <multicast address="">, as discussed in the previous bullet. The port value is taken to be the one found from looking up the data type name in the port table.
|
| interface | The network interface to send multicast traffic on. Defaults to 'the primary network interface', however 'primary' is defined. See socket.gethostbyname_ex() documentation. |
|