skeleton of plugx tcp module