Query about Networking Based C program

This is a discussion on Query about Networking Based C program within the C Programming forums, part of the General Programming Boards category; Is it possible to Build a C Program to perform the sending of a file through Connectionless Packet Switching in ...

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    10

    Query about Networking Based C program

    Is it possible to Build a C Program to perform the sending of a file through Connectionless Packet Switching in LINUX Platform through SOCKET BINDING. What I mean by this is that each host should have a routing table of its own and when a file is to be sent from one host to another host and if there is no point to point connection between these 2 hosts, the sending host should forward this file to an intermediate node(s) which has the shortest route between these 2 hosts. It would be very helpful if someone can let me know whether this is possible and also share their experience on this. Thank You

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,639
    Is this going to sit on top of TCP/IP? Since you said connectionless, I'm thinking UDP packets containing the file data. Can you elaborate on your plan some more? What exactly is going in the custom routing table? It almost sounds like you want to write your own routing software.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by anduril462 View Post
    Is this going to sit on top of TCP/IP? Since you said connectionless, I'm thinking UDP packets containing the file data. Can you elaborate on your plan some more? What exactly is going in the custom routing table? It almost sounds like you want to write your own routing software.
    Or a rudimentary proxy host....

  4. #4
    Registered User
    Join Date
    Mar 2011
    Posts
    10
    The routing table basically consists of the path from a source to destination like for example, if 3 nodes are there and node 1 can send to node 3 only through node 2, then the routing table of node 1 will have 2 Column entries called DESTINATION NODE and NEXT NODE where if the destination node contains node 3 for the routing table of node 1, then using the NEXT NODE entry( node 2 in this case), the file should be forwarded to node 2 which then sends it to node 3.

  5. #5
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Now that the question is understood...
    Yes it's possible...

  6. #6
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,639
    Since it sounds like you don't know much at all about socket programming, I suggest you start with Beej's Guide to Network Programming. Google around for more tutorials and examples. Get a handle on basic TCP and UDP connections first. Start with simple examples and build up to your routing thing.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Cheque Printing Program Query
    By karlawarla in forum C++ Programming
    Replies: 24
    Last Post: 11-08-2006, 02:11 PM
  2. about networking program
    By f6ff in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-04-2006, 08:10 PM
  3. about networking program
    By f6ff in forum C++ Programming
    Replies: 2
    Last Post: 06-04-2006, 06:44 PM
  4. Simple Networking Program in C
    By osal in forum C Programming
    Replies: 4
    Last Post: 05-30-2004, 12:46 PM
  5. Possible Networking Program Design :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 05-04-2002, 07:20 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