Skip to content

m4ttzzzz/Sleak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sleak

Sleak is a Python UDP-based network audio program designed for streaming over LAN.

license plogo version

Features

  • Dynamic port negotiation
  • Lightweight
  • Modular(ish) code
  • Fast by default

Implementing the protocol

Still haven't made the documentation, sorry T_T

Using the Services

HandshakeService is cross-platform, but UDPSender is for Windows only.

from Services.HandshakeService import HandshakeService, Command
hs = HandshakeService() # Starts as a TCP server by default on 127.0.0.1:1337
client = hs.accept_client()

cmd, cnttype, param = hs.listen() # Listen until client sends
if cmd == Command.HELLO:
    print("Client said hello!")

Other Things

  • Sleak is always changing, which means command names and values may change.
  • Releases are made every 2 weeks or so, if I have free time.
  • This project was made because I was learning sockets, so expect instability (unless you made your own implementation.)

About

Sleak is an UDP-based network audio protocol designed for streaming over LAN.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages