A semantic search engine for source code https://bitshift.benkurtovic.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 line
424 B

  1. import socket
  2. client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  3. client_socket.connect(("localhost", 5002))
  4. with open("resources/Matrix.java", "r") as java_file:
  5. source = java_file.read() + "\nEOS_BITSHIFT"
  6. client_socket.send("%d\n%s" % (len(source), source));
  7. data = ''
  8. while True:
  9. data = client_socket.recv(10000)
  10. if data != '':
  11. client_socket.close()
  12. break;
  13. print data;