Blog

#personal

July 27, 2016

Recently I decided to look further into the BitTorrent Protocol, as I have been fascinated by distributed systems (like peer-to-peer) and the communication protocols involved.

As I learnt more about how the protocol works, I thought it would be a good exercise to create a parser for the Bencode format — the format used to store and transfer metadata about a torrent file. My main goal was to create a simple program that is capable of constructing an internal representation of the Bencoded string and can output it in a nicer format (e.g. JSON).


Bencode

Bencode is a relatively straight-forward encoding which has four different types:

Byte Strings

Encoded as ... Continue Reading...

Post Info

Author Jed Simson
Date July 27, 2016
Filename 2016-07-27-Bencode Parsing in Swift.md
Filesize 9271
Last Modified Mon, 15 Oct 2018
Post ID blog_post_4
Summary Thoughts about using Swift to create a Bencode parser.
Tags bencode, swift, parsing, personal, code
Title Bencode Parsing in Swift
Words 1099
July 14, 2016

This is my personal portfolio and blog site - my own little section of the Internet!

I probably won't post a whole lot, but I may occasionally post my thoughts on my studies, personal projects, or some music reviews.

For now, I will simply leave a few links to some songs I've been enjoying lately - enjoy!

Post Info

Author Jed Simson
Date July 14, 2016
Filename 2016-07-14-Welcome.md
Filesize 658
Last Modified Mon, 15 Oct 2018
Post ID blog_post_3
Summary The very first post for my blog!
Tags first post, personal
Title Welcome
Words 57