Click here to Skip to main content
15,891,253 members
Articles / Web Development / ASP.NET

Peer Collaboration - Inviting

Rate me:
Please Sign up or sign in to vote.
4.20/5 (4 votes)
1 May 20067 min read 27.2K   441   28  
Inviting People Near Me using Microsoft's Peer-to-Peer Collaboration technology in Windows Vista.
using System;
using System.Runtime.InteropServices;

namespace Peer.Collaboration
{
	public class PeerCollabRequestStatusChangedEventArgs : EventArgs
	{
		private PeerEndPoint endpoint;
		private uint result;

		internal PeerCollabRequestStatusChangedEventArgs(PeerEndPoint EndPoint, uint Result)
		{
			endpoint = EndPoint;
			result = Result;
		}

		public PeerEndPoint EndPoint
		{
			get { return endpoint; }
		}

		public uint Result
		{
			get { return result; }
		}
	}

    public class PeerCollabPNMChangedEventArgs : EventArgs
    {
        private PeerPeopleNearMe pnm;
        private PeerChangeType changetype;

        internal PeerCollabPNMChangedEventArgs(PeerChangeType ChangeType, PeerPeopleNearMe PNM)
        {
            pnm = PNM;
            changetype = ChangeType;
        }

        public PeerPeopleNearMe PeopleNearMe
        {
            get { return pnm; }
        }

        public PeerChangeType Action
        {
            get { return changetype; }
        }
    }

    public class PeerInviteResponseEventArgs : EventArgs
    {
        private PeerInvitationResponse response;
        internal PeerInviteResponseEventArgs(PeerInvitationResponse Response)
        {
            response = Response;
        }

        public PeerInvitationResponse Response
        {
            get { return response; }
        }
    }
}

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.

License

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


Written By
Web Developer
Canada Canada
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.

Comments and Discussions