com.TCPRequest methods

Methods of the com.TCPRequest class.

Table 1. Class methods of com.TCPRequest
Name Description
com.TCPRequest.Create(
   url STRING )
  RETURNING result com.TCPRequest
Creates a new TCP request object.
Table 2. Object methods of com.TCPRequest
Name Description
beginXmlRequest()
  RETURNING writer xml.StaxWriter
Starts a streaming XML request.
doDataRequest(
   data BYTE )
Performs the request by sending binary data.
doRequest()
Performs a TCP request.
doTextRequest(
   data STRING )
Persforms a request with a string.
doXmlRequest(
   document xml.DomDocument )
Persforms a request with a DOM document.
endXmlRequest(
  writer xml.StaxWriter )
Terminates a streaming TCP request.
getAsyncResponse()
  RETURNING response com.TCPResponse
Returns the response after performing a TCP request, asynchronously.
getResponse()
  RETURNING response com.TCPResponse
Returns the response after performing a TCP request.
setConnectionTimeOut(
   seconds INTEGER )
Defines the connection time out.
setKeepConnection(
   on BOOLEAN )
Defines if the TCP connection is kept open after sending a request.
setMaximumResponseLength(
   length INTEGER )
Defines the time out for read/write operations.
setTimeOut(
   seconds INTEGER )
Defines the time out for read/write operations.