What is a trojan and how it works?

An executable that receives http connections on port 80 and executes commands is considered a trojan?

An old article, but still significant.

 

http://www.symantec.com/connect/articles/introduction-trojans-and-backdoors