Welcome to Enlight’s documentation!¶
-
class
mainCode.session.enlightSession(name='', role=0, password='')¶ The main session class
-
clearAllSessions()¶ Clears the sessionlist chace
-
getSessionId()¶ Get the local session id
-
getSessionMembers()¶ Get all session members
-
initConnection()¶ Starts the main dicovery/connction method(s)
-
join(sessionID)¶ Join a remote session
-
leave()¶ Leaves the session, will take at least two seconds
-
lightSearcherMain()¶ The main thread for clients to connect
-
lighthouseMain()¶ The main thread for searching/finding sessions
-
stopSession()¶ Stops the session as a HOST
-
-
mainCode.session.get_local_ip(no=0)¶ Gets the local ip address
-
mainCode.session.get_random_alphanumeric_string(length)¶ Returns a randomly genrated alphanumeric string, with the length length