|
using System;
using System.Net;
namespace Peer.Collaboration
{
public class PeerEndPoint
{
internal PEER_ENDPOINT data;
internal PeerEndPoint(PEER_ENDPOINT info)
{
data = info;
}
public string Name
{
get { return data.pwzEndpointName; }
}
public IPEndPoint Address
{
get
{
return new IPEndPoint(new IPAddress(data.address.sin6.sin6_addr, data.address.sin6.sin6_scope_id), data.address.sin6.sin6_port);
}
}
public void Refresh()
{
uint hr = PeerCollabNative.PeerCollabRefreshEndpointData(ref data);
if (hr != 0) throw new PeerCollabException(hr);
}
//public PeerApplicationCollection Applications
//{
// get { return new PeerApplicationCollection(data); }
//}
//public PeerObjectCollection Objects
//{
// get { return new PeerObjectCollection(data); }
//}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Adrian Moore is the Development Manager for the SCADA Vision system developed by ABB Inc in Calgary, Alberta.
He has been interested in compilers, parsers, real-time database systems and peer-to-peer solutions since the early 90's. In his spare time, he is currently working on a SQL parser for querying .NET DataSets (http://www.queryadataset.com).
Adrian is a Microsoft MVP for Windows Networking.