public void SendFile(string filePath) { while (!IsConnected) { _autoResetEvent.WaitOne(10); } FileHelper.Read(filePath, (data) => { _dataSocket.Send(_userToken.ID, data); }); while (IsConnected) { _autoResetEvent.WaitOne(10); } }
public void Send(IUserToken userToken, byte[] data) { _serverSokcet.Send(userToken.ID, data); }
private void ReplyPong(IUserToken ut, QueueResult data) { var qcoder = (QUnpacker)ut.Unpacker; _serverSokcet.Send(ut.ID, qcoder.QueueCoder.Pong(data.Name)); }
private void ClassificationBatcher_OnBatched(string name, byte[] data) { _serverSokcet.Send(name, data); }