Daylight v4.9
Release Date: 1 February 2008

Name

dt_ping - test a server's ability to respond

Generic Prototype

dt_ping(dt_Handle, dt_String) => dt_Integer

C Prototype

#include "dt_thor.h"

dt_Integer dt_ping(dt_Handle server, dt_Integer strlen, dt_String string)

FORTRAN Prototype

include 'dt_f_thor.inc'

integer*4 dt_f_ping(server, string)

integer*4 server
character*() string

Description

Sends the text string on a round-trip to the server and back to verify that the connection is working correctly. This function in handy during debugging, but generally not used otherwise.

This function can be used by the user DX_INFO_USER.

Return Value

Returns the number of bytes of data sent to the server and successfully received back from the server or '0' if an error is detected or if the data sent does not match the data received.

Related Topics

dt_thor_server(3) dt_server(3)