dlient and server are not defined automatically in Lite-C I think, because Lite-C handles defines differently and your code above would require two compiled version - one for the clients and one for the server.

Better evaluate the "connection" variable.