go-waku/examples/waku-csharp
Jakub Sokołowski a4009b70d1 fix: replace references to old statusim.net domain
Use of `statusim.net` domain been deprecated since March:
https://github.com/status-im/infra-shards/commit/7df38c14

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-07-31 13:31:16 +02:00
..
waku-csharp fix: replace references to old statusim.net domain 2024-07-31 13:31:16 +02:00
.gitignore feat: c-sharp example (#222) 2022-04-02 20:22:42 -04:00
README.md chore: rename status-im/go-waku to waku-org/go-waku 2022-11-09 16:03:40 -04:00
waku-csharp.sln feat: c-sharp example (#222) 2022-04-02 20:22:42 -04:00

README.md

C Sharp Example

Requirements

Running this example

These instructions should be executed in git bash:

# Clone the repository
git clone https://github.com/waku-org/go-waku.git
cd go-waku

# Build the .dll
make dynamic-library

# Copy the library into `libs/` folder
cp ./build/lib/libgowaku.* ./build/examples/waku-csharp/waku-csharp/libs/.

Open the solution waku-csharp.sln in Visual Studio and run the program.

Description

The following files are available:

  • Program.cs contains an example program which uses the waku library
  • Waku.cs: file containing the Waku namespace with classes that allows you to instantiate a Go-Waku node
    • Waku.Config: class used to configure the waku node when instantiation
    • Waku.Node: waku node. The following methods are available:
      • Node - constructor. Initializes a waku node. Receives an optional Waku.Config
      • Start - mounts all the waku2 protocols
      • Stop - stops the waku node
      • PeerId - obtain the peer ID of the node.
      • PeerCnt - obtain the number of connected peers
      • ListenAddresses - obtain the multiaddresses the node is listening to

Help wanted!

  • Is it possible to build go-waku automatically by executing make dynamic-library and copying the .dll automatically into libs/ in Visual Studio?