Skip to content

Commit

Permalink
Merge pull request #3 from Pesa/editorconfig
Browse files Browse the repository at this point in the history
Add `.editorconfig`
  • Loading branch information
pulsejet committed Feb 28, 2024
2 parents 2c30637 + 8d7943c commit 0ebec9f
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 14 deletions.
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true

[*.{cpp,py,ts}]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false

[*.{yaml,yml}]
indent_style = space
indent_size = 2
2 changes: 1 addition & 1 deletion docs/debugging.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Debugging

!!! warning "This page is under construction."
!!! warning "This page is under construction."
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ The design of NDN naturally leads to several advantages over IP and IP-based pro

- **Multicast and Caching**: The stateful forwarding plane allows for aggregation of requests and responses, which enables efficient multicast of all Data packets. Since NDN packets are individually secured and do not rely on channel security, data is also securely cached at every forwarder in the network, creating a massive distributed cache.

The NDN project also maintains a large open source code base, with NDN forwarders, debugging tools and libraries available in multiple languages including C++, Python, Go, TypeScript etc. Most of this code is available at the [GitHub](https://github.com/named-data).
The NDN project also maintains a large open source code base, with NDN forwarders, debugging tools and libraries available in multiple languages including C++, Python, Go, TypeScript etc. Most of this code is available at the [GitHub](https://github.com/named-data).
2 changes: 1 addition & 1 deletion docs/packets.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ The next page will describe how to use the libraries to send and receive the pac

``` typescript
--8<-- "snippets/packets/packets.ts"
```
```
2 changes: 1 addition & 1 deletion docs/routing.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Routing

!!! warning "This page is under construction."
!!! warning "This page is under construction."
2 changes: 1 addition & 1 deletion docs/sync.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Sync Transport

!!! warning "This page is under construction."
!!! warning "This page is under construction."
2 changes: 1 addition & 1 deletion snippets/communication/consumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ int main(int argc, char** argv)

// Start face processing loop
face.processEvents();
}
}
2 changes: 1 addition & 1 deletion snippets/communication/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ async def main():
app.shutdown()

if __name__ == '__main__':
app.run_forever(after_start=main())
app.run_forever(after_start=main())
2 changes: 1 addition & 1 deletion snippets/communication/consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ try {
}

// Disconnect from the remote NFD instance
uplink.close();
uplink.close();
2 changes: 1 addition & 1 deletion snippets/communication/producer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ int main(int argc, char** argv)

// Start face processing loop
face.processEvents();
}
}
2 changes: 1 addition & 1 deletion snippets/communication/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ def on_interest(name: FormalName, param: InterestParam, _app_param: Optional[Bin
app.put_data(name, content=content, freshness_period=10000)

if __name__ == '__main__':
app.run_forever()
app.run_forever()
2 changes: 1 addition & 1 deletion snippets/packets/packets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ int main(int argc, char** argv)

// Set the Data packet's content to "Hello, NDN!"
data.setContent(ndn::make_span(reinterpret_cast<const uint8_t*>("Hello, NDN!"), 11));
}
}
2 changes: 1 addition & 1 deletion snippets/packets/packets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ interest.lifetime = 5000;
const data = new Data(name);

// Set the Data packet's content to "Hello, NDN!"
data.content = toUtf8('Hello, NDN!');
data.content = toUtf8('Hello, NDN!');
2 changes: 1 addition & 1 deletion snippets/security/key-gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ console.log('Data:', toHex(wire));
// Export public keys
const publicKeyBits = verifier.spki!;
console.log('Public Key bits:', toHex(publicKeyBits));
// Importing a public key in NDNts is very complicated
// Importing a public key in NDNts is very complicated
// so I recommend to use a certificate instead.
// I will show you how to do it later.

Expand Down
2 changes: 1 addition & 1 deletion visuals/packets.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
src="https://play.ndn.today/?visualize=06A2071B0803656475080475636C6108026373080331313808056E6F746573150B48656C6C6F2C204E444E21162C1B01031C2707250803656475080475636C610802637308056C6978696108034B455938080005FA3ADE0C75D817483046022100E773B365BE4FCED756073E9183A46258206F1624BC04B55ABE41CA4E259FBCF3022100D8F5CDCF0C946D71142708AABDC18819B4E9C6990DEC90AE0306E1A7E7D663C6"
crossorigin="anonymous" data-message-fun="handleVisMessage" style="border: none; width: 100%">
</iframe>
</div>
</div>

0 comments on commit 0ebec9f

Please sign in to comment.