Set Buf = new CclOBuf ' create extensible buffer object Buf.SetString(serialNo) Buf.setLength(20480) ' stores Nulls in the unused area
In the above example, Commarea is given the serial number and the buffer is increased to the required amount, but the extra area is filled with nulls. This is important as it ensures that the information transmitted to the server is kept to a minimum. The Client daemon strips off the excess nulls and only transmits the 12 bytes to the server.