Skip to content
Snippets Groups Projects
Select Git revision
  • 2fbb1a6dbc02b2e04613fa25c6535842e34c163a
  • master default
  • datenotunique
  • archives
  • lastToucanUrl
  • urltitle-year
  • lets-hope-for-the-best
  • everything-is-fine
  • feature/change-pdf-endpoint
9 results

schema.js

Blame
  • client.py 277 B
    import socket
    
    host = socket.gethostname()
    port = 12345                   # The same port as used by the server
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect((host, port))
    s.sendall(b'Hello, world')
    data = s.recv(1024)
    s.close()
    print('Received', repr(data))