[hot] — Ghostcast Server

@dataclass class Client: """Client connection information""" client_id: str address: tuple last_heartbeat: float received_chunks: int status: str ip_address: str hostname: str = "Unknown"

class PacketType(Enum): """GhostCast packet types""" SESSION_ANNOUNCE = 0x01 CLIENT_JOIN = 0x02 CLIENT_READY = 0x03 DATA_CHUNK = 0x04 HEARTBEAT = 0x05 COMPLETE = 0x06 ERROR = 0x07 RECOVERY_REQUEST = 0x08

if == " main ": main() Client Implementation (Basic) #!/usr/bin/env python3 """ GhostCast Client - Receives multicast disk images """ import socket import struct import hashlib import os import threading import time import logging

MAGIC_COOKIE = b'GHOST'

class GhostCastServer: """Main GhostCast Server Implementation"""

Email o nick Contraseña Cerrar ×
Conectar
Olvidé mi contraseña  

[hot] — Ghostcast Server

@dataclass class Client: """Client connection information""" client_id: str address: tuple last_heartbeat: float received_chunks: int status: str ip_address: str hostname: str = "Unknown"

class PacketType(Enum): """GhostCast packet types""" SESSION_ANNOUNCE = 0x01 CLIENT_JOIN = 0x02 CLIENT_READY = 0x03 DATA_CHUNK = 0x04 HEARTBEAT = 0x05 COMPLETE = 0x06 ERROR = 0x07 RECOVERY_REQUEST = 0x08 ghostcast server

if == " main ": main() Client Implementation (Basic) #!/usr/bin/env python3 """ GhostCast Client - Receives multicast disk images """ import socket import struct import hashlib import os import threading import time import logging ghostcast server

MAGIC_COOKIE = b'GHOST'

class GhostCastServer: """Main GhostCast Server Implementation""" ghostcast server