udpclient.c: support memory write command