Nicolas Cueto wrote:
(B
(B>I was hoping someone might care to comment on the following before-and-after
(B>script outlines, perhaps even going so far as to also suggest a simpler way.
(B>  
(B>
(BIt might be easier to suggest a simpler way if you could explain what
(Byou *want* to do.
(BSuggesting changes to the code you give leaves the possibility that we
(Bmiss a really simple way because of the assumptions you have already
(Bmade in the code you provide.
(B
(B>Appended below, too, is the perhaps relevant sections from the Rev
(B>documentation, but the implementation of which I'm afraid I could not
(B>understand (i.e., how or where to actually refer in a script to a
(B>non-numeric socket identifier I've arbitrarily assigned).
(B>  
(B>
(BYou can simply say something like
(B
(Bopen socket "192.168.0.1:8080|myconnectionname" with message "sendItOne"
(B
(Band then you have given a connection name which will never conflict with
(Bone that accept will give.
(B
(BThe next paragraph says (or at least, I read it as saying) that "accept"
(Bwill only ever use numeric values for the ID part - hence will never
(Bconflict if you use a non-numeric ID like "myconnectionname"
(B
(B>#########REV DOC: accept command###########
(B>When a connection is made or a datagram is received, the accept command
(B>creates a new socket that can be used to communicate with the other system
(B>(or process). When using the close socket, read from socket, or write to
(B>socket commands, you can refer to this socket with a socket identifier that
(B>looks like this:
(B>
(B>  host:port[|connectionID]
(B>
(B>where the connectionID is a number assigned by the accept command. (You only
(B>need to specify the connection number if there is more than one socket
(B>connected to a particular port and host.)
(B>
(B>#########REV DOC:open socket command#######
(B>Note:  When the accept command creates a socket, it assigns a number as the
(B>connection name. If you are using both the open socket command and the
(B>accept command to connect to the same port on the same host, make sure to
(B>use a non-numeric connection name that won?t conflict with the numbers
(B>assigned by the accept command. This ensures that you can always refer to
(B>two different sockets by distinct socket identifiers.
(B>  
(B>
(B-- Alex.
(B
(B
(B-- 
(BNo virus found in this outgoing message.
(BChecked by AVG Anti-Virus.
(BVersion: 7.0.298 / Virus Database: 265.6.6 - Release Date: 28/12/2004
(B
(B_______________________________________________
(Buse-revolution mailing list
([email protected]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to