added sendServer() common function
Merge pull request #34 from milneti/master

added sendServer() common function