Skip to content

Commit

Permalink
create server socket port 4221
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer-ke committed Mar 15, 2024
1 parent 9fdfd4f commit 7a089b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# Uncomment this to pass the first stage
# import socket
import socket


def main():
# You can use print statements as follows for debugging, they'll be visible when running tests.
# You can use print statements as follows for debugging,
# they'll be visible when running tests.
print("Logs from your program will appear here!")

# Uncomment this to pass the first stage
#
# server_socket = socket.create_server(("localhost", 4221), reuse_port=True)
# server_socket.accept() # wait for client
server_socket = socket.create_server(("localhost", 4221), reuse_port=True)
server_socket.accept() # wait for client


if __name__ == "__main__":
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tool.black]
line-length = 79

0 comments on commit 7a089b4

Please sign in to comment.