---
name: "recho"
section: "2"
platform: "linux"
package: "lam2-dev"
version: "6.3.2-3"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/recho"
---

# recho(2)

Send messages to LAM echo server.

## NAME

recho - Send messages to LAM echo server.

## SYNOPSIS

int recho (int node, char \*src\_msg, char \*dest\_msg, int length);

## ARGUMENTS

- node

  location of echo service

- src\_msg

  outgoing message

- dest\_msg

  incoming echo message

- length

  of both message buffers

## DESCRIPTION

The echo server returns any message that it receives to the sender. It is a confidence testing service for the LAM network.

The message *length* must not exceed the maximum network message length MAXNMSGLEN, defined in \<net.h\> and factory set to 8192 bytes.

## RETURN VALUE

Upon successful completion, the number of bytes echoed is returned. If an error occurred, -1 is returned and the global variable *errno* is set to indicate the error.

## ERRORS

- EMSGLEN

  The message length exceeds the maximum message length.

## SEE ALSO

[tping(1)](/tping/1.md)
