Rails 4 How to connect TCPServer

Kindly help me .
i have GPS device which needs to transmit data to server.

I need TCPServer Example

What do you mean by a TCPServer?

Colin