Add ability to change the url being used for a connection. This allows us to run multiple urls on a connection which we need for many of the mail protocols.

git-svn-id: svn://10.0.0.236/trunk@31488 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mscott%netscape.com
1999-05-13 22:52:25 +00:00
parent 9615a05e1d
commit 7f2bae17fd
3 changed files with 22 additions and 0 deletions

View File

@@ -90,6 +90,17 @@ nsConnectionInfo::GetURL(nsIURL **aURL)
return NS_OK;
}
NS_IMETHODIMP
nsConnectionInfo::SetURL(nsIURL *aURL)
{
NS_IF_RELEASE(pURL); // release old one
pURL = aURL;
NS_IF_ADDREF(pURL); // now addref new one
return NS_OK;
}
NS_IMETHODIMP
nsConnectionInfo::GetInputStream(nsIInputStream **aStream)
{