int Invite(string user, Uri docRoot, string invitationFile) { if (host == null) { host = MyDns.GetHostName(); } FileInviter fi = new FileInviter(); if (!fi.Invite(user, docRoot, host, port, invitationFile)) { Console.WriteLine("could not make invitation"); return(20); } return(0); }
int Accept(string invitationFile, string docRootParent) { FileInviter fi = new FileInviter(); return(fi.Accept(docRootParent, invitationFile)? 0: 30); }