My server is expecting the data received to be a byte array with the length of 1024.
#!/Python34/python
import socket
print("Content-Type: text/html\n")
HOST = '10.10.10.12' # The remote host
PORT = 100 # The same port as used by the server
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
s.send(b'Oi you sent something to me')
This post has been edited by Atli: 02 June 2015 - 11:14 AM
Reason for edit:: Use [code] tags when posting code.

New Topic/Question
Reply


MultiQuote


|