ReceivedString.s=ReceiveNetworkString(ConnectionIdentifier)

Receive a string, up to 512 characters, if there isn't new data return a null string, don't merge commands to receive data and strings on the same program if you are not sure what are you doing.