TCP data forwarding
Good day All!
Sorry for my english.
I'm begginer of programming in linux.
Data generator <-> bad tcp/ip chanel <-> linux server <-> client(s)
I need get data from "Data generator" (tcp-server) and send it (create tcp-server) to client(s).
I have Windows service that can do this, but I need linux daemon.
May be some one know daemon, that can solve this problem?
Or, how to create daemon, that can solve this problem?
Something like this:
sudo tcpserver -v 127.0.0.1 65001 tcpcat Data.generator.net 65000
But I can create only one connect to "Data generator".
Look into the listen and accept functions. Google around for tutorials on this, they're everywhere. A good one is: Beej's Guide to Network Programming.
Note that the winsock library was derived heavily from the BSD sockets library that most *NIX implementations use, thus the TCP/IP portion of your Windows service will be nearly identical to what you should be doing in Linux.
Thanks for reply!
But I have next trouble: this site didn't open (may be only from my countru), google cache version of this site openning very long.....
Site works great for me. Must be something on your end. You can try a web proxy: http://proxy.org/cgi_proxies.shtml.