![]() Publickey = b'4vF083_jOpvEdqbXqem8GP96wmawb0KKZLz3o43o-KU=' Privatekey = b'Hq9vW2opxUZ7ld51Inrz0rvnMhlHtukUnFKrIAyxyOE=' #Use 0.0.0.0 after you have port forwarded Udp_server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) If serverObj.clients < (time.time() - timeout): The actual voice chat is here which is by me class serverHandler(threading.Thread):Ĭlass connectionHandler(threading.Thread):įor addr in ().keys(): The data sent from the client doesnt go above 1024 bytes but its a constant stream of data. I'm not sure on how to solve this I have tried to thread the loops and everything. ![]() When a third joins in it start lagging like crazy. When two people are using it, its pretty normal barely any latency. Essentially I have made a simple voice chat using UDP socket.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |