23 lines
596 B
C#
Raw Normal View History

2020-01-11 17:56:12 +01:00
namespace Capnp.Rpc
2019-06-12 21:56:55 +02:00
{
/// <summary>
/// A uni-directional endpoint, used in conjunction with the <see cref="RpcEngine"/>.
/// </summary>
public interface IEndpoint
{
/// <summary>
/// Transmit the given Cap'n Proto message over this endpoint.
/// </summary>
void Forward(WireFrame frame);
2020-04-22 22:35:06 +02:00
/// <summary>
/// Indicates that the endpoint should flush any buffered frames.
/// </summary>
2020-04-22 22:19:16 +02:00
void Flush();
2019-06-12 21:56:55 +02:00
/// <summary>
/// Close this endpoint.
/// </summary>
void Dismiss();
}
2020-01-11 17:56:12 +01:00
}