how giveaway tcp server pier controlling ruby?


i'm perplexing emanate use-once http server hoop unparalleled callback need assistance awaiting giveaway tcp pier ruby.



this skeleton i'm doing:



require 'socket'
t = stdin.read
port = 8081
while s = tcpserver.new('127.0.0.1', port).accept
puts s.gets
s.print "http/1.1 200/ok\rcontent-type: text/plain\r\n\r\n" + t
s.close
exit
end


(it echoes customary quarrel initial tie following dies.)



how i automatically giveaway pier listen on?



this seems wholly proceed start office remote server following calls behind unparalleled office id. office id following queried station info. since uncanny designers couldn't only relapse office id scheduling office i'll never know. unparalleled pier can't used since conflicts churned callbacks competence occur; proceed ports wholly used +- 5 seconds.



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members