Back Previous Next


Linguist network package - reply

Syntax:

   reply {message}
   reply {message} [to {socket}]

Keyword handler:

   net.eclecity.linguist.network.keyword.NetworkKReply.class

Runtime handler(s):

   net.eclecity.linguist.network.handler.NetworkHReply.class

Function:

The first form of this command sends a reply to an ask request, a message received by a client or service as part of a peer-to-peer networking setup. It can only be used inside an on ask callback.

The second form sends a datagram containing {message} to the sender of the last received message, using the socket specified. This command can only be used inside an on socket instruction as this is the only place that knows who the sender was.

Example(s):

   reply "OK"
   reply "Got your message" to MySocket


Back Previous Next relevant services. This may happen several times during system start up so it's important