Well i will explain me better:

I have a c++ program running. That program is sending socket packets as strings, like:

New point:5.2
New point:5.1
New point:5.6
New point:2.4

(...)
So it sends to a port (3000) ip: 127.0.0.1

Now.. i need Gs to read that messages.. and update a 3dSG string that will be the flow of messages from the server.