Introduction
Introduction Statistics Contact Development Disclaimer Help
seeedfarming: process the input as a 1 line string - brcon2025-hackathons - Bit…
git clone git://bitreich.org/brcon2025-hackathons git://enlrupgkhuxnvlhsf6lc3fz…
Log
Files
Refs
Tags
---
commit 3bd98e91f1d752ae93f0af24083a7a016d1fcd57
parent 644c58d480adfced1f4d60c64b133816d60d6a42
Author: Josuah Demangeon <[email protected]>
Date: Fri, 1 Aug 2025 19:36:45 +0200
seeedfarming: process the input as a 1 line string
Diffstat:
M seeedfarming/windowshell.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/seeedfarming/windowshell.py b/seeedfarming/windowshell.py
@@ -21,6 +21,7 @@ myip = wlan.ipconfig('addr4')[0]
print(myip)
myport = 70
+myserver = 'bitreich.org'
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((myip, myport))
@@ -45,7 +46,7 @@ endserial="66666666666666666"
while True:
conn, addr = s.accept()
print('Connected with %s:%s' % (addr[0], addr[1]))
- selector = conn.read().decode()
+ selector = conn.readline().decode()
print('read %s from client\n' % selector)
selectorpath = selector.split("/")
serialnumber = "".join(selectorpath)
@@ -55,4 +56,4 @@ while True:
else:
gopher_print(conn, "Welcome to Windows Hell!\nTry to find the …
for number in range(0, 9):
- gopher_link(conn, selector, number)
+ gopher_link(conn, selector, str(number))
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.