Skip to content

Commit

Permalink
Lehen bertsio finala
Browse files Browse the repository at this point in the history
  • Loading branch information
Iosu Sanchez committed Oct 28, 2019
1 parent 446a904 commit efc2381
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bez_fitx.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,13 @@ def iserror(message):
# neurketa-zatiak irakurri, (ER/OK mezurik gabe)
# bufferraren tamaina 1000 byte baino gutxiago den arte
# edo 1000 byte eta hurrengoa hutsa
print("Lehen mezua irakurri da. " + str(len(buf.decode("ascii"))))
if(len(buf.decode("ascii")) == 1002+1): #mezua osorik beteta zegoen, 1 gehitu RETURN-agarik
jasota,_,_ = select.select([s],[],[],2.5)
jasota,_,_ = select.select([s],[],[],10)
if not jasota:
print("Eskuratutako neurketak: \r\n" + data)
continue
buf = s.recv(1001)
while(len(buf.decode("ascii")) == 1000+1):
print("sartu naiz")
data += buf.decode("ascii")
buf = s.recv(1001)

Expand Down

0 comments on commit efc2381

Please sign in to comment.