Sockets
    Troy Rollins 
    troy at rpsystems.net
       
    Fri Aug 27 19:06:39 EDT 2004
    
    
  
On Aug 27, 2004, at 6:47 PM, Keith Hutchison wrote:
> Read and write.
> Concept is send in a command via tcpip to a server, process the 
> results on
> the Runtime Revolution built client.
Well then, in your description you are -
opening the socket
once open, writing to the socket
once written, closing the socket
You probably want to have something like -
on messageWritten theIP
     read from socket theIP until linefeed with message "storeData"
end messageWritten
----------
on storeData theIP, theMessage
	Put theMessage into field "resultField"
end storeData
Generally, you will keep going back and reading, until some condition 
tells your software to stop that. So the storeData handler may well 
make a new call to "read from socket..." again, etc.
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net
    
    
More information about the use-livecode
mailing list