SDK Home Glossary Index Left Right Up

Service resolver


Section contents


Overview

Defined in

csocket.oxh

Description

<TBS>


Construction / destruction


NewServiceResolver

Usage

this& = NewServiceResolver&:

Description

<TBS>

Return Value
this& A handle which represents the created service resolver object
Error Handling

If the object could not be created then an error is generated which should be trapped by an ONERR handler.

Example
  LOCAL this&

  this& = NewServiceResolver&:
  DeleteServiceProvider:(this&) 

DeleteServiceResolver

Usage

DeleteServiceResolver:(BYREF this&)

Description

<TBS>

Arguments
BYREF this& A handle for a service resolver object. A zero value is written back into the variable
Example
  LOCAL this$

  this& = NewServiceResolver&:
  DeleteServiceResolver:(this&) 

Methods provided


ServiceProviderCancel

Usage

ServiceProviderCancel:(this&)

Description

<TBS>

Arguments
this& A handle for a service provider object

ServiceResolverClose

Usage

ServiceResolverClose:(this&)

Description

<TBS>

Arguments
this& A handle for a service provider object

ServiceResolverGetByNameA

Usage

ServiceResolverGetByNameA:(this&,name$,port&,BYREF status&)

Description

<TBS>

Arguments
this& A handle for a service provider object
name$ <TBS>
port& <TBS>
BYREF status& The status of the asynchronous operation
Error Handling

If the status& object cannot be created then an error is generated which should be trapped by an ONERR handler.


ServiceResolverGetByNumberA

Usage

ServiceResolverGetByNumberA:(this&,port&,des&,BYREF status&)

Description

<TBS>

Arguments
this& A handle for a service provider object
port& <TBS>
des& <TBS>
BYREF status& The status of the asynchronous operation
Error Handling

If the status& object cannot be created then an error is generated which should be trapped by an ONERR handler.


ServiceResolverOpen

Usage

err% = ServiceResolverOpen%:(this&,server&,family&,sockType&,protocol&)

Description

<TBS>

Arguments
this& A handle for a service provider object
server& The socket server session; a handle to a SocketServ object
family& Specifies the address family
sockType& Specifies the socket type
protocol& Specifies the protocol
Return value
err% The result of the operation

ServiceResolverRegisterServiceA

Usage

ServiceResolverRegisterServiceA:(this&,name$,BYREF port&,BYREF status&)

Description

<TBS>

Arguments
this& A handle for a service provider object
name$ <TBS>
BYREF port& <TBS>
BYREF status& The status of the asynchronous operation
Error Handling

If the status& object cannot be created then an error is generated which should be trapped by an ONERR handler.


ServiceResolverRemoveServiceA

Usage

ServiceResolverRemoveServiceA:(this&,name$,BYREF port&,BYREF status&)

Description

<TBS>

Arguments
this& A handle for a service provider object
name$ <TBS>
BYREF port& <TBS>
BYREF status& The status of the asynchronous operation
Error Handling

If the status& object cannot be created then an error is generated which should be trapped by an ONERR handler.


  SDK Home Glossary Index Left Right Up