|
This factory call initializes a local variable with opened UDPClientSockets/TCPClientSockets. Typically, it binds one to an even and one to an odd socket for RTP and RTCP and fails if that is not possible. If the factory mode m indicates that RTCP is allowed to fail, only an even socket may be opened. - Parameters:
-
| pair | A referenced to a clean RTPSockets struct that should not refer to any sockets yet. The condition is not verified, which may result in memory leaks and forgotten file descriptors- |
| port | The lowest permissible port to open. If an exact port assignment is required, the only permissible port to open. In case of success, this variable contains the RTP port that has been opened. In case of failure this variable is undefined after the call. |
| limit | The highest RTP port number that might be chosen. In case of fixed RTP port request, this is ignored. |
| m | The creation mode. Flags are described above. |
- Returns:
- true if the UDP/TCP sockets are opened successfully, or in case that RTCP is allowed to fail, true is also returned if only RTP has been opened. false if something went wrong.
|