Update 'server/NetGenieSrv.py'

This commit is contained in:
Sana147 2023-05-01 23:32:10 +00:00
parent 8264964353
commit 03e2601714

View File

@ -5,6 +5,8 @@ import sys;
def init_socket(): def init_socket():
# Create a TCP/IP socket # Create a TCP/IP socket
# socket type .AF_INET is the Internet address family for IPv4.
# .SOCK_STREAM is the socket type for TCP.
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Bind the socket to the port 8000 # Bind the socket to the port 8000