[Mono-dev] Missing System.Net.ServicePoint.BindIPEndPointDelegate Property
Bryan Livingston
bryanlivingston at gmail.com
Thu May 24 17:45:21 EDT 2007
System.Net.ServicePoint.BindIPEndPointDelegate property is missing and
I desperately need it.
The property is used to specify an outbound IP address when you have
multiple addresses bound to a computer.
Here is how I'm tring to use it:
IPEndPoint BindIPEndPointCallback(ServicePoint servicePoint,
IPEndPoint remoteEndPoint, int retryCount)
{
Console.WriteLine("BindIPEndpoint called");
if (OutboundAddress == null)
return new IPEndPoint(IPAddress.Any, 0);
else
return new IPEndPoint(IPAddress.Parse(OutboundAddress), 0);
}
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(address);
request.ServicePoint.BindIPEndPointDelegate = new
BindIPEndPoint(BindIPEndPointCallback);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Socket.Bind appears to be implemented so this shouldn't be to a huge
deal to get working.
There's some more info on the property here:
http://blogs.msdn.com/malarch/archive/2005/09/13/466664.aspx
Is there any chance that someone could get the property working in SVN
in the next week or two? Please save me from switching to a windows
server for this project!
Bryan Livingston
http://bryanlivingston.com
More information about the Mono-devel-list
mailing list