tcp packet overflow

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • chris Struhar

    tcp packet overflow

    I have to transmit an icon across the internet from a client to a
    server which handles connections from many different clients and just
    continuously loops through receiving data from the buffer. the icon is
    too big to fit in one tcp packet. what would be the easiest way to get
    this to work?

    thanks for any help.
  • Kevin Goodsell

    #2
    Re: tcp packet overflow

    chris Struhar wrote:
    [color=blue]
    > I have to transmit an icon across the internet from a client to a
    > server which handles connections from many different clients and just
    > continuously loops through receiving data from the buffer. the icon is
    > too big to fit in one tcp packet. what would be the easiest way to get
    > this to work?[/color]

    No sign of a C++ question here.




    -Kevin
    --
    My email address is valid, but changes periodically.
    To contact me please use the address from a recent posting.

    Comment

    • Jonathan Mcdougall

      #3
      Re: tcp packet overflow

      > I have to transmit an icon across the internet from a client to a[color=blue]
      > server which handles connections from many different clients and just
      > continuously loops through receiving data from the buffer. the icon is
      > too big to fit in one tcp packet. what would be the easiest way to get
      > this to work?[/color]




      Jonathan


      Comment

      • emerth

        #4
        Re: tcp packet overflow

        wardisgod@adelp hia.net (chris Struhar) wrote in message news:<e43e97b3. 0310031652.70ab fce@posting.goo gle.com>...[color=blue]
        > I have to transmit an icon across the internet from a client to a
        > server which handles connections from many different clients and just
        > continuously loops through receiving data from the buffer. the icon is
        > too big to fit in one tcp packet. what would be the easiest way to get
        > this to work?
        >
        > thanks for any help.[/color]

        C functions send() and recv().

        They don't deal in packets, they deal at a rather higher level
        with streams. Search for BSD Sockets, Windows Sockets (winsock
        or winsock2).

        Books:
        (1) UNIX Network Programming, Stevens - covers all the bases
        and moves over to Windows fairly easily if that's where you live.
        (2) MSDN (for Windows)

        Comment

        • Kevin Goodsell

          #5
          Re: tcp packet overflow

          emerth wrote:[color=blue]
          > wardisgod@adelp hia.net (chris Struhar) wrote in message news:<e43e97b3. 0310031652.70ab fce@posting.goo gle.com>...
          >[color=green]
          >>I have to transmit an icon across the internet from a client to a
          >>server which handles connections from many different clients and just
          >>continuousl y loops through receiving data from the buffer. the icon is
          >>too big to fit in one tcp packet. what would be the easiest way to get
          >>this to work?
          >>
          >>thanks for any help.[/color]
          >
          >
          > C functions send() and recv().[/color]

          There are no such functions in C, nor C++.

          -Kevin
          --
          My email address is valid, but changes periodically.
          To contact me please use the address from a recent posting.

          Comment

          • Mohamed Ghouse

            #6
            Re: tcp packet overflow

            To transmit data from an Application Program, normally you are not concerned
            about framing of packets.

            Use existing system calls or library functions & forget the framing of
            packets. eg: the BSD's socket interface.
            The very popular socket() call & then the read/write calls to receive &
            transmit.

            You have to state the Platform(OS & Programming Language) on which you are
            currently involved.

            -Ghouse

            "chris Struhar" <wardisgod@adel phia.net> wrote in message
            news:e43e97b3.0 310031652.70abf ce@posting.goog le.com...[color=blue]
            > I have to transmit an icon across the internet from a client to a
            > server which handles connections from many different clients and just
            > continuously loops through receiving data from the buffer. the icon is
            > too big to fit in one tcp packet. what would be the easiest way to get
            > this to work?
            >
            > thanks for any help.[/color]


            Comment

            • Kevin Goodsell

              #7
              Re: tcp packet overflow

              Mohamed Ghouse wrote:

              Please stop top-posting.


              [color=blue]
              > To transmit data from an Application Program, normally you are not concerned
              > about framing of packets.
              >
              > Use existing system calls or library functions & forget the framing of
              > packets. eg: the BSD's socket interface.
              > The very popular socket() call & then the read/write calls to receive &
              > transmit.[/color]

              None of this is standard C++, therefore it is off-topic here.



              [color=blue]
              >
              > You have to state the Platform(OS & Programming Language) on which you are
              > currently involved.[/color]

              Standard solutions do not rely on a particular platform, and
              non-standard solutions do not belong here.

              -Kevin
              --
              My email address is valid, but changes periodically.
              To contact me please use the address from a recent posting.

              Comment

              Working...