AGK for Pascal
TAgkIncomingNetworkMessage.GetString Method

Gets a single string value from the message and advances the data pointer to the next message item.

function GetString: String;

The value.

Messages should be created and read according to known formats, e.g. String, Integer, String as there is no immediate way for the receiver to know the format of a message. You could use an initial integer to specify a message type ID which you can use to identify the message format.

Copyright (c) 2012. All rights reserved.