Although M/Wire is intended to be used within a language binding or interface to GT.M or Caché, its simple TCP-based protocol means that you can drive it manually which is useful for testing and familiarising yourself with how it works and how to use the persistent multi-dimensional arrays that underpin both database technologies.
If you're running a terminal session on a Linux machine, you can test M/Wire by establishing a telnet session to the M/Wire port (6330 by default) on the IP address of the GT.M or Caché machine (192.168.1.109 in the following example). Hit the Enter key to terminate your requests. EXIT will close the M/Wire session and return you to your Linux shell, eg:
ewd@mdb:~$ telnet 192.168.1.109 6330 Trying 192.168.1.109... Connected to 192.168.1.109. Escape character is '^]'. PING +PONG INFO m_wire_version:Build 4 Beta connected_clients:1 SET test1[111,"a"] 5 12345 +OK GET test1[111."a"] -Invalid Command GET test1[111,"a"] $5 12345 EXIT Connection closed by foreign host. ewd@mdb:~$
If you're a Windows user, you can use puTTY to connect to and test M/Wire. Simply start puTTY, enter the IP address of the GT.M or Caché server into the Host Name (or IP address) window, enter the M/Wire port (6330 by default) and select a Connection type of Raw from the bullet-point list. Then click the Open button. A blank PuTTY window will open and you can start typing commands. Hit the Enter key to terminate your requests. EXIT will close the session and the puTTY window.