Skip to content

pydsigner/Lila

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fleshing out a simple protocol sent in line buffered JSON

Dependancies:
    -Twisted
    -Redis Server
    -PyRedis

Protocol:
    Everything is a json dumped dict.

    Connection
    Client -> Server: {"USER":username, "PASS":password}
    if auth:
        Server -> Client: {"STATUS":"OK"}
    else (after 25 seconds or failed login):
        Server -> Client: {"STATUS" : "REJECTED"}

    Every 25 seconds
    Server -> Client: {"PING":uid}
    Client -> Server: {"PONG": same uid}
    if fail or timeout:
        {"STATUS" : "REJECTED", "INFO" : "Did not reply to last ping."}
    else:
        repeat 25 seconds later

About

Light Instant Line Allocated (Server)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages