CMD messenger for Ethernet socket ? ethernet socket parse cmds ?

Hi , I am starting to build a home automation controller and i simply want to send CMD's through an Ethernet socket so various things can be controlled via own custom Android app / python etc .

what i want is the following format :

CMD [param1] [param2] .....

would be great to be able to have both strings and Int in the parameters

I found CMD messenger , but this looks like its serial port only ?

Been searching and can't really find anything similar , Before i write something myself that isn't going be as good, if anyone could suggest a library or a good starting point that would be a great help.

Thanks for looking

Luke