send?

send given message to selected socket and return true if successful


Parameters

send? destination :socket
      message :string

Returns

  • :logical

Examples

copy
; connect to a local server on port 256 socket: connect.to:"localhost" 256 ; send a message to the server ; and check if it was successful sent?: send? socket "Hello Socket World" print ["Message was sent successfully:" sent?]

Related