## The `Send' method

Argument: None (Character Vector for Socket Object)
Result: None (Integer Scalar for Socket object)

Valid for: Any object, special meaning for Socket.

The `Send` method invokes the `onSend` callback (if any) for an object. The `onSend` callback is never invoked by APLX except in response to this method, so it can be used in any way which makes sense for your APL application.

For a Socket, the `Send` method has a special meaning. It takes a character vector argument, which is transmitted to the other end of the network connection. The data is sent exactly as it, without any character translation (i.e. the character vector is treated as a sequence of raw bytes). The return code is 0 for success, or 3 if an error occurs.

Topic: APLX Help : System Classes : Methods : Send

[ Previous | Next | Contents | Index ]