mirror of
https://github.com/KevinMidboe/Node-Com-Handler.git
synced 2025-10-29 17:50:27 +00:00
Init commit, lots of stuff already made, and need to clean up
This commit is contained in:
14
plexLoop.py
Normal file
14
plexLoop.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from socket import *
|
||||
from time import sleep
|
||||
|
||||
host = '10.0.0.41'
|
||||
port = 12000
|
||||
|
||||
clientSocket = socket(AF_INET, SOCK_DGRAM)
|
||||
|
||||
clientSocket.sendto('plex', (host, port))
|
||||
message, address = clientSocket.recvfrom(1024)
|
||||
print message
|
||||
|
||||
|
||||
clientSocket.close()
|
||||
Reference in New Issue
Block a user