kill()  send()

Chapter 3: Message Objects and Methods

restart()

Description

When clcomm is in connect mode, attempts to reconnect to the endpoint application. When clcomm is in single-instance listen mode, listens again for the endpoint application after a connection has been lost.

Syntax

restart();

Return value

Integer.

Returns any positive value for success, which indicates that restart() launched the clcomm attempt to reconnect to or listen for the endpoint. However, success does not guarantee a successful connection.

Returns 0 for failure, which indicates that restart() failed to launch the attempt to connect to or listen for the endpoint.

Usage

In a function

In a control flow

mycomm.restart();

where mycomm is the name of the communications object.

1. Click Object. 2. Select the communications object from the drop-down list. 3. Select restart from the Method drop-down list.





Copyright © 2005. Sybase Inc. All rights reserved. send()

View this book as PDF