Quote Originally Posted by quickNitin
tcpcock.cpp:105: error: no matching function for call to 'tcpCock::connect(QgsMapCanvas*, const char [28], tcpCock* const, const char [25])'
Make sure you have proper #include directive for QgsMapCanvas in that file.