2 writes to m_PeerNameRecord
System.Net (2)
net\PeerToPeer\PeerNameRegistration.cs (2)
643
m_PeerNameRecord
= new PeerNameRecord();
694
m_PeerNameRecord
= info.GetValue("_PeerNameRecord", typeof(PeerNameRecord)) as PeerNameRecord;
38 references to m_PeerNameRecord
System.Net (38)
net\PeerToPeer\PeerNameRegistration.cs (38)
112
m_PeerNameRecord
.PeerName = name;
130
return
m_PeerNameRecord
;
156
return
m_PeerNameRecord
.PeerName;
161
m_PeerNameRecord
.PeerName = value;
170
return
m_PeerNameRecord
.EndPointCollection;
190
return
m_PeerNameRecord
.Comment;
194
m_PeerNameRecord
.Comment = value;
201
return
m_PeerNameRecord
.Data;
205
m_PeerNameRecord
.Data = value;
291
if (
m_PeerNameRecord
.PeerName == null)
328
m_PeerNameRecord
.TracePeerNameRecord();
336
if (
m_PeerNameRecord
.Data != null)
338
regInfo.payLoad.cbPayload = (UInt32)
m_PeerNameRecord
.Data.Length;
339
handle = GCHandle.Alloc(
m_PeerNameRecord
.Data, GCHandleType.Pinned);
349
if (
m_PeerNameRecord
.Comment != null &&
m_PeerNameRecord
.Comment.Length > 0)
351
regInfo.pwszComment =
m_PeerNameRecord
.Comment;
362
if (
m_PeerNameRecord
.EndPointCollection.Count == 0)
376
int result = UnsafeP2PNativeMethods.PeerPnrpRegister(
m_PeerNameRecord
.PeerName.ToString(),
389
int numAddresses =
m_PeerNameRecord
.EndPointCollection.Count;
398
for (int i = 0; i <
m_PeerNameRecord
.EndPointCollection.Count; i++)
400
byte[] sockaddr = SystemNetHelpers.SOCKADDRFromIPEndPoint(
m_PeerNameRecord
.EndPointCollection[i]);
408
int result = UnsafeP2PNativeMethods.PeerPnrpRegister(
m_PeerNameRecord
.PeerName.ToString(),
437
m_RegisteredPeerName =
m_PeerNameRecord
.PeerName;
479
if (
m_PeerNameRecord
.PeerName == null)
489
if (!m_RegisteredPeerName.Equals(
m_PeerNameRecord
.PeerName))
519
m_PeerNameRecord
.TracePeerNameRecord();
526
if (
m_PeerNameRecord
.Data != null)
528
regInfo.payLoad.cbPayload = (UInt32)
m_PeerNameRecord
.Data.Length;
531
GCHandle handle = GCHandle.Alloc(
m_PeerNameRecord
.Data, GCHandleType.Pinned);
538
if (
m_PeerNameRecord
.Comment != null &&
m_PeerNameRecord
.Comment.Length > 0)
540
regInfo.pwszComment =
m_PeerNameRecord
.Comment;
551
if (
m_PeerNameRecord
.EndPointCollection.Count == 0)
572
int numAddresses =
m_PeerNameRecord
.EndPointCollection.Count;
581
for (int i = 0; i <
m_PeerNameRecord
.EndPointCollection.Count; i++)
583
byte[] sockaddr = SystemNetHelpers.SOCKADDRFromIPEndPoint(
m_PeerNameRecord
.EndPointCollection[i]);
720
info.AddValue("_PeerNameRecord",
m_PeerNameRecord
);