Browse Source

Update 'server/NetGenieSrv.py'

master
Sana147 2 years ago
parent
commit
03e2601714
  1. 2
      server/NetGenieSrv.py

2
server/NetGenieSrv.py

@ -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

Loading…
Cancel
Save