writeBinary(buffer: Binary);
The writeBinary method of the TcpIpConnection class writes binary data to the connection and returns when the operation is complete.
The writeBinary method can be called only when the value of the
Messages are sent in the order that the connection object receives them.
The following example of the writeBinary method sets the encryptMethod property for the connection.
buttonSend_click(btn: Button input) updating; begin self.tcp.encryptMethod := "okEncrypt"; // Checks to make sure TCP is in connection state 2 (connected). // If it is, binary data from the text box is written to the connection. if self.tcp.state = Connection.Connected then self.tcp.writeBinary(textBox1.text.Binary); endif; end;