-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from c80k/interception
fix for issue #33
- Loading branch information
Showing
10 changed files
with
78 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Capnp.FrameTracing | ||
{ | ||
/// <summary> | ||
/// Send or receive | ||
/// </summary> | ||
public enum FrameDirection | ||
{ | ||
/// <summary> | ||
/// Receive direction | ||
/// </summary> | ||
Rx, | ||
|
||
/// <summary> | ||
/// Send direction | ||
/// </summary> | ||
Tx | ||
} | ||
|
||
/// <summary> | ||
/// Client interface for observing RPC traffic | ||
/// </summary> | ||
public interface IFrameTracer: IDisposable | ||
{ | ||
/// <summary> | ||
/// Called whenever an RPC frame was sent or received | ||
/// </summary> | ||
/// <param name="direction">frame direction</param> | ||
/// <param name="frame">actual frame</param> | ||
void TraceFrame(FrameDirection direction, WireFrame frame); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@0xaa62d76b329585e5; | ||
|
||
interface Frobnicator(T) | ||
{ | ||
frobnicate @0 (value: T); | ||
} | ||
|
||
interface FrobnicatorFactory | ||
{ | ||
createFrobnicator @0 [T] (id: Text) -> (result: Frobnicator(T)); | ||
} |