Tintware Documentation : Tint Programming Language : Tint Reference : Ports and Processes : port.putSyntax#(%port.put,%value) #(%port.put,%value,%failed) #(%port.put,%value,%failed,%timeout) %port is any port. %value is the characters to be written to the port. %failed is what should be returned if the write fails or the timeout occurs. %timeout is how long to wait in seconds for the write to complete. Example#(def,p,#(tint.socket)) #(#(p).connect,sourceforge.org,80) #(#(p).put,GET / HTTP/1.1#(tint.byte,10)#(tint.byte,10)) #(#(p).close) |