swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Other Library Functions  
function  

TCPServiceAcceptConnection

 
 

Library: TCP/IP client and server support (OMTCP legacy, OmniMark versions 4 - 6.0.1)
Include: omtcp.xin
Return type: TCPConnection

Returns: A TCPConnection object.


Declaration

define external TCPConnection function TCPServiceAcceptConnection
      value TCPService this-TCPService
 


Purpose

TCPServiceAcceptConnection is used by a server program to listen and accept incoming client-initiated service requests.

If TCPServiceAcceptConnection fails, it still returns a TCP connection object. This failure object is in error and is closed. If the passed TCP service object itself is in error, or was never opened, TCPServiceAcceptConnection simply fails.

Argument:

Example:

  local TCPService omdemo-service
  local TCPConnection client
  
  set omdemo-service to TCPServiceOpen at 5600
  
  repeat 
     set client to TCPServiceAcceptConnection omdemo-service
     ;process request
  again

      Other Library Functions
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.