Skip to content
0:00 / 0:00

#elixir#protohackers#tcp

Protohackers in Elixir: day 5 - Mob in the Middle

Andrea Leopardi

1.1K subscribers • 4 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

1K views3 years ago1 recommendation

Programming languagesSystems programmingElixir and ErlangNetworking and protocols

Andrea Leopardi builds a man-in-the-middle proxy server in Elixir to intercept and modify chat traffic for the Protohackers challenge.

This is the sixth video of my "Protohackers" Elixir series. We're solving network challenges from protohackers.com. I’m deploying code using a free account on fly.io. The source code is on GitHub: github.com/whatyouhide/protohackers_in_elixir Some resources for this video: • The description of the Protohackers problem we're working through in this video: protohackers.com/problem/5 • The description of the Protohackers "Budget Chat" problem from two videos ago: protohackers.com/problem/3 • Deploying Elixir applications on Fly.io: fly.io/docs/elixir/getting-started/legacy • Documentation for the Erlang gen_tcp module: erlang.org/doc/man/gen_tcp.html Other resources: • My website: andrealeopardi.com • Twitter: twitter.com/whatyouhide • Mastodon: mas.to/@whatyouhide • #Elixir's website: elixir-lang.org Music from Uppbeat (free for Creators!): uppbeat.io/t/prigida/leaf-counter License code: BROSVTYPHPKBHUSL Chapters: Intro Protohackers problem description Network architecture OTP architecture and active sockets Writing some code Proxying and rewriting addresses Deploy and test Conclusion

Why it's here

1 person recommends this

What people say. Recommended as a practical demonstration of building network proxies in Elixir.

u/whatyouhidein r/elixir • Recommends

Solving Protohackers network challenges in Elixir — Episode 6