better tcp handling, what ive done before was a bit dumb

This commit is contained in:
Marcus 2024-01-04 22:38:49 +01:00
parent b042f4f404
commit 06d8d7839b

View file

@ -305,13 +305,13 @@ flootworker()
xymode xymode
echo "$OFFSET echo "$OFFSET
${LOL[$i]}" > /dev/tcp/$IPFLOOT/$FLOOTPORT || message warn "transmission in worker ${YELLOW}$1${ENDCOLOR} ${RED}failed${ENDCOLOR} - maybe you need to decrease ${YELLOW}FLOOTFORKS${ENDCOLOR} or expand/tune your uplink" ${LOL[$i]}" #> /dev/tcp/$IPFLOOT/$FLOOTPORT || message warn "transmission in worker ${YELLOW}$1${ENDCOLOR} ${RED}failed${ENDCOLOR} - maybe you need to decrease ${YELLOW}FLOOTFORKS${ENDCOLOR} or expand/tune your uplink"
#FLOOTSRUNNING=$((FLOOTSRUNNING-1)) #FLOOTSRUNNING=$((FLOOTSRUNNING-1))
#echo "${LOL[$i]}" > /dev/tcp/127.0.0.1/1337 & #echo "${LOL[$i]}" > /dev/tcp/127.0.0.1/1337 &
#echo "worker $i PID ${LOLPID[$i]}" #echo "worker $i PID ${LOLPID[$i]}"
done done > /dev/tcp/$IPFLOOT/$FLOOTPORT || message warn "transmission in worker ${YELLOW}$1${ENDCOLOR} ${RED}failed${ENDCOLOR} - maybe you need to decrease ${YELLOW}FLOOTFORKS${ENDCOLOR} or expand/tune your uplink"
} }
checkfile() { checkfile() {
@ -341,9 +341,10 @@ loadLOL() {
} }
floot() { floot() {
# small stupid animation, two alternating images
case $FNAME in case $FNAME in
# small stupid animation, two alternating images
winketuxS) winketuxS)
message "drawing winketuxS animation" message "drawing winketuxS animation"
LOL[1]="$(cat pixlists/${FNAME}1.pixlist | shuf)" LOL[1]="$(cat pixlists/${FNAME}1.pixlist | shuf)"