Thread: Sending Packettes

  1. #1
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638

    Smile Sending Packettes

    I made a packette sender for both UDP and TCP and I did it useing two diff methods.

    Method 1 use same port to send multi pacs

    Method 2 used multi ports to send multi pacs

    Question which way is better?

    I was just playing with the prog to see what would work. There is an interesting side effect. TIA

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    More than likely for what you're doing, it doesn't matter. It could matter if you're using a multi-threaded process.

    The real issue is if your client (or server) expects or can handle out of order data. If you're using some form of queueing to make sure the end result is as you expect, you should be fine on multiport.

    If you're just using a single loop, you probably get no benifit from using multiple ports.

    Honestly though, I haven't written anything network intensive, so the above is just my take on it.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    70

    ------------------------------------------------------------
    Method 1 use same port to send multi pacs

    Method 2 used multi ports to send multi pacs
    ------------------------------------------------------------


    In above lines, whether you are telling about ports at destination side or ports at your side ???
    Chintan R Naik

  4. #4
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638

    Smile packettes

    That is the send side. It also opens 2k of ports to listen no matter which way I do it. I how ever found that if I connect to an open port of the recieve test machine the data is recieved. It worked both ways.

    Thank You

    ps The reason I asked it to see how others do it. I have examined many progs also. Sometimes one has to ask what is not in the prog. ie the reason behind the way in which a prog was written.

    psps Hello packette monkeys annonomous....
    Last edited by kryptkat; 07-02-2003 at 04:56 PM.

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    It also opens 2k of ports to listen no matter which way I do it.
    What the hell for?

    Quzah.
    Hope is the first step on the road to disappointment.

  6. #6
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638

    Smile listen on 2k of ports

    I have asked that same question a few times.

    When I do a netstat there is where and when I see all the ports.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sending data - line by line?
    By tuckker in forum C Programming
    Replies: 0
    Last Post: 02-21-2009, 09:31 PM
  2. signal sending and waiting
    By eva69 in forum C Programming
    Replies: 1
    Last Post: 10-03-2008, 12:03 PM
  3. Replies: 2
    Last Post: 07-24-2008, 06:05 AM
  4. need help with sending file
    By finnepower in forum Networking/Device Communication
    Replies: 12
    Last Post: 03-20-2005, 01:12 PM
  5. Sending text to an edit box
    By ColdFire in forum Windows Programming
    Replies: 1
    Last Post: 09-24-2002, 07:46 PM