|
class ArtNetServer():
|
|
def __init__(self, ip, port):
|
|
self.ip = ip
|
|
self.port = port
|
|
|
|
import socket
|
|
|
|
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
s.bind(('', 6454))
|
|
s.listen()
|
|
|
|
while True:
|
|
conn, addr = s.accept()
|
|
print('Got a connection from %s' % str(addr))
|