TCP data forwarding

This is a discussion on TCP data forwarding within the Linux Programming forums, part of the Platform Specific Boards category; Good day All! Sorry for my english. I'm begginer of programming in linux. My trouble: Data generator <-> bad tcp/ip ...

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    2

    TCP data forwarding

    Good day All!

    Sorry for my english.
    I'm begginer of programming in linux.
    My trouble:

    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".

    Kind regards,
    Labor

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,425
    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.

  3. #3
    Registered User
    Join Date
    May 2011
    Posts
    2
    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.....

    Kind regards,
    from Ukraine,
    Labor

  4. #4
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,425
    Site works great for me. Must be something on your end. You can try a web proxy: http://proxy.org/cgi_proxies.shtml.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Forwarding connection
    By splintter in forum C Programming
    Replies: 1
    Last Post: 08-28-2010, 12:17 PM
  2. Forwarding client data
    By zacs7 in forum Networking/Device Communication
    Replies: 4
    Last Post: 02-16-2010, 10:15 PM
  3. Port Forwarding 2 routers
    By cerin in forum Tech Board
    Replies: 1
    Last Post: 06-14-2009, 10:47 AM
  4. Port Forwarding
    By cerin in forum Tech Board
    Replies: 1
    Last Post: 04-05-2007, 03:41 PM
  5. Port Forwarding DI-624
    By Tonto in forum Tech Board
    Replies: 0
    Last Post: 08-27-2006, 10:48 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21