internal BTZomBServer(BluetoothListener listener, string from, int tn, BTZomBFingerFactory finger) { listen = listener; this.from = from; severThread = new Thread(ZomBworker); TeamNumber = tn; ff = finger; }
/// <summary> /// Create a new ZomB FingerServer Factory /// </summary> /// <param name="teamNumber">Your team number</param> /// <param name="from">Path to saved data folder</param> /// <param name="to">Save data to this folder</param> /// <remarks> /// The path should be a reference to a folder that contains all the data files. /// Once all the files are sent, the tag .ZomBarchiveXXX is appended to their file name, where /// XXX is the time ticks. /// The To path works similarly, but .ZomBYYY is appended before the file extension, where /// YYY is the transfer number stored in the file .ZomB in the To path /// </remarks> public static BTZomBFingerFactory GetFactory(int teamNumber, string from, string to) { if (s == null) { s = new BTZomBFingerFactory(teamNumber, from, to); } return s; }
internal BTFinger(BluetoothClient client, string to, int tn, BTZomBFingerFactory finger) { blucli = client; To = to; if (!To.EndsWith("\\")) To += "\\"; TeamNumber = tn; ff = finger; sliceThread = new Thread(ZomBworker); sliceThread.IsBackground = true; if (!Directory.Exists(To)) Directory.CreateDirectory(To); }