public Proto.Action WaitForConfirmation() { var action = new Proto.Action(); pbInputStream.ReadMessage(action); return(action); }
public void SendData(FileStream file) { pbOutputStream.WriteLength((int)file.Length); pbOutputStream.Flush(); file.CopyTo(stream); stream.Flush(); var action = new Proto.Action(); pbInputStream.ReadMessage(action); }
public void SendData(byte[] data) { pbOutputStream.WriteLength(data.Length); pbOutputStream.Flush(); stream.Write(data, 0, data.Length); stream.Flush(); //pbOutputStream.WriteBytes(ByteString.CopyFrom(data)); //pbOutputStream.Flush(); var action = new Proto.Action(); pbInputStream.ReadMessage(action); }
public void SendAction(Proto.Action action) { pbOutputStream.WriteMessage(action); pbOutputStream.Flush(); }