| TCPConnectionGetOutput Full Description |   | 
| Syntax   define external output function TCPConnectionGetOutput
        value TCPConnection this-TCPConnection
      timeout value counter timeout-in-milliseconds optional
      protocol value IOProtocol this-IOProtocol optional
  as TCPConnectionGetOutput
Purpose This function returns an external output object, permitting writes on the connection. If the passed TCP connection object is closed or was never connected, this function returns a dummy external output object that swallows anything written to it. At the same time, it sets the TCP connection object to be in error. The timeout value applies primarily to data written to the returned external output. In the case of  
 If a TCP connection from which an external output is derived is closed using  The external output created by  In general, for this function, if the time between writing two characters never exceeds the timeout value, no timeout exception occurs. If a timeout exception does occur, the operation involved discards the output text for an output or put and sets the TCPConnection to be in error. If a timeout value is not specified, it writes "block" until data is written, or until some other process indicates that an error has occurred. Arguments: 
 Example:
 local TCPConnection TCP-Conn local stream s set TCP-Conn to TCPConnectionOpen on "localhost" at 5300 TCPConnectionSetBuffering TCP-Conn enabled false open s with binary-mode as TCPConnectionGetOutput TCP-Conn protocol IOProtocolMultiPacket put s ("=" ||* 3048 || "%n") ||* 10 put s "hello world" close s repeat exit unless TCPConnectionIsConnected TCP-Conn output TCPConnectionGetCharacters TCP-Conn again |