contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
function   TCPServiceOpen    
    Related Concepts   Other Library Functions  

Library: TCP/IP
Include: omioprot.xin, omtcp.xin
Returns: Opaque

Returns a TCP service object.

Declaration

  define external TCPService function TCPServiceOpen
       at value counter port-number optional initial {0}
  as TCPServiceOpen


Purpose

This function is used by a server program to create a TCP service port on which it will listen for incoming client-initiated service requests. If no port number is given, then TCPServiceOpen chooses an available port number for you. In this case, TCPServiceGetPort can be used to learn which port was chosen.

If TCPServiceOpen fails, it still returns a TCP service object. This failure object is in error and is closed.

Argument:

Example:

  set omdemo-service to TCPServceOpen at 5600

      Related Concepts
   Security considerations
 
Other Library Functions
   TCPConnectionClose
   TCPConnectionGetCharacters
   TCPConnectionGetLine
   TCPConnectionGetOutput
   TCPConnectionGetPeerIP
   TCPConnectionGetPeerName
   TCPConnectionGetSource
   TCPConnectionGetStatusReport
   TCPConnectionIsConnected
   TCPConnectionIsInError
   TCPConnectionOpen
   TCPConnectionPut
   TCPConnectionSetBuffering
   TCPConnectionSignalSourceEnd
   TCPIsVersionCompatible
   TCPLibraryVersion
   TCPServiceAcceptConnection
   TCPServiceClose
   TCPServiceGetPort
   TCPServiceGetStatusReport
   TCPServiceIsInError
   TCPServiceIsOpen
   TCPServiceOpen
   TCPTraceConnectionOpen
 
----  

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:21 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.