swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
      Other Library Functions  
function   HttpServiceAwaitRequest    

Library: omhttp - HTTP support
Include: omhttp.xin
Return type: Opaque
Returns:       

Returns the TCP connection object that was opened between the server and client.


Declaration

  define function HttpServiceAwaitRequest
                 value       TCPService    Service
     receive     modifiable  stream        Request
     connection  modifiable  TCPConnection Connection
     timeout     value       integer       Timeout optional initial {10000}
     decode-search-plus value switch Decode-Search-Plus optional initial {false}


Purpose

This function waits on the specified TCP service until an HTTP request is received. The HTTP request object is populated from the received message and passed on to the rest of the program for processing to create an HTTP response object. HttpServiceAwaitRequest occurs in a server program.

Input arguments:

Output arguments:

Example:

  ; HttpServiceAwaitRequest

  local TCPService my-Service
  local TCPConnection client-Connection
  local HttpRequest new-Request

  set my-Service to TCPServiceOpen at 1080

  HttpServiceAwaitRequest
     my-Service receive new-Request connection client-Connection timeout 30000

        Other Library Functions
   HttpConnectionSendResponse
   HttpLibraryVersion
   HttpObjectGetCookieAttributes
   HttpObjectGetCookieValues
   HttpObjectGetHeaders
   HttpObjectGetStatusReport
   HttpObjectIsInError
   HttpObjectSetCookieAttribute
   HttpObjectSetCookieValue
   HttpObjectSetHeader
   HttpRequestGetSearchItems
   HttpRequestSend
   HttpRequestSetFromUrl
   HttpRequestSetProxy
   HttpRequestSetSearchItem
   HttpResponseOutput
   HttpServiceAwaitRequest
 
----  

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ OMX ] [ ERRORS ]

Generated: August 11, 2000 at 3:07:21 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.