top of page
IMG_4501_edited.jpg

...

Yazı: Hoş Geldiniz

TCP/IP FOR PYTHON


      import socket
         TCP_IP = '127.0.0.1'
   TCP_PORT = 5005
   BUFFER_SIZE = 1024
   MESSAGE = "Hello, World!"
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  1s.connect((TCP_IP, TCP_PORT))
  1s.send(MESSAGE)
  1data = s.recv(BUFFER_SIZE)
  1s.close()
  1  1print ("received data:", data)

Okey we will discuss this codes next time and we will explain how to work this code lines.

4 görüntüleme0 yorum

Comments


Yazı: Blog2_Post
bottom of page