diff options
author | Emil Ivov <emcho@jitsi.org> | 2010-09-19 10:52:17 +0000 |
---|---|---|
committer | Emil Ivov <emcho@jitsi.org> | 2010-09-19 10:52:17 +0000 |
commit | 4c7710cd641839bbf001db5818b65331f6c69bd4 (patch) | |
tree | b9d8bbd56e486c8a622c655b110e66235ff3c3c0 /src/net/java/sip/communicator/service/netaddr/NetworkAddressManagerService.java | |
parent | b5d5d8874d683a0af814dadb2140023149858138 (diff) | |
download | jitsi-4c7710cd641839bbf001db5818b65331f6c69bd4.zip jitsi-4c7710cd641839bbf001db5818b65331f6c69bd4.tar.gz jitsi-4c7710cd641839bbf001db5818b65331f6c69bd4.tar.bz2 |
ICE integration for XMPP accounts
Diffstat (limited to 'src/net/java/sip/communicator/service/netaddr/NetworkAddressManagerService.java')
-rw-r--r-- | src/net/java/sip/communicator/service/netaddr/NetworkAddressManagerService.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/netaddr/NetworkAddressManagerService.java b/src/net/java/sip/communicator/service/netaddr/NetworkAddressManagerService.java index 5c0c739..fb5b063 100644 --- a/src/net/java/sip/communicator/service/netaddr/NetworkAddressManagerService.java +++ b/src/net/java/sip/communicator/service/netaddr/NetworkAddressManagerService.java @@ -171,4 +171,30 @@ public interface NetworkAddressManagerService public StunCandidateHarvester discoverStunServer(String domainName, byte[] userName, byte[] password); + + /** + * Creates an <tt>IceMediaStrean</tt> and adds to it an RTP and and RTCP + * component, which also implies running the currently installed + * harvesters so that they would. + * + * @param rtpPort the port that we should try to bind the RTP component on + * (the RTCP one would automatically go to rtpPort + 1) + * @param streamName the name of the stream to create + * @param agent the <tt>Agent</tt> that should create the stream. + * + *@return the newly created <tt>IceMediaStream</tt>. + * + * @throws IllegalArgumentException if <tt>rtpPort</tt> is not a valid port + * number. + * @throws IOException if an error occurs while the underlying resolver + * is using sockets. + * @throws BindException if we couldn't find a free port between within the + * default number of retries. + */ + public IceMediaStream createStream( int rtpPort, + String streamName, + Agent agent) + throws IllegalArgumentException, + IOException, + BindException; } |