Skip to content
Niffoxic

FoxRoom

Peer-hosted chat with real-time voice, on raw sockets.

Type
Systems
Role
Solo
Stack
C++ · Networking · Sockets · FMOD · Opus
Links
Source on GitHub ↗
FoxRoom

Real-time voice + text chat over raw TCP/UDP sockets.

Overview

A from-scratch networked chatroom with real-time voice. Any user can host, then share an encrypted room key - it carries the connection and access details - for others to join. Text runs over TCP and voice over UDP, with no high-level networking library doing the work; the point was to learn the wire itself.

What I built

  • Host or join Any peer can become the host and hand out a generated, encrypted room key that carries the IP and access info.
  • Text chat Real-time messaging over TCP.
  • Voice chat Real-time voice over UDP, encoded with Opus and played back through FMOD.
  • Music player Offline local playback, also via FMOD.
  • Threading Dedicated send and receive loops keep the networking responsive.
  • Platform Windows, built with MSVC (v143).

Hard parts

  • Splitting reliable text over TCP from low-latency voice over UDP, and keeping both smooth under load.
  • Designing the encrypted room key so joining stays simple while the connection details stay protected.

I can build something like this for your project.

Related services: C++ and CG desktop applications.

Contact for a freelance project
Harsh Dubey

Harsh Dubey

Graphics and game programmer. MSc Games Engineering (Distinction), University of Warwick.

About me