Re: Strange problem drive me mad.

From: Steven Tang (steven.tang_at_tlvsys.com)
Date: 12/27/04

  • Next message: Carl: "WPA2 Support"
    Date: Mon, 27 Dec 2004 01:12:38 -0800
    
    

    Thanks!!!

    Regards
    Steven.

    "Alexander Nickolov" <agnickolov@mvps.org> wrote in message
    news:uQNFoqs6EHA.2540@TK2MSFTNGP09.phx.gbl...
    > Definitely not. Simply read all data available on each
    > notification, then chop it into packets. BTW, the data
    > is dropped by your code, not by the TCP layer.
    >
    > --
    > =====================================
    > Alexander Nickolov
    > Microsoft MVP [VC], MCSD
    > email: agnickolov@mvps.org
    > MVP VC FAQ: http://www.mvps.org/vcfaq
    > =====================================
    > "Steven Tang" <steven.tang@tlvsys.com> wrote in message
    > news:eTYi2Oi6EHA.1260@TK2MSFTNGP12.phx.gbl...
    >> Thanks for reply, actually, the problem is that client (may caused by
    >> server)
    >> always flush data before I decode the each packet when buffer is full. Is
    >> it
    >> possible I disable data's aggregating and so that I can get FD_READ
    >> message
    >> per packet? I means that get each FD_READ by each calling to "send"at
    >> server
    >> side.
    >>
    >> Regards
    >> Steven
    >> "Alexander Nickolov" <agnickolov@mvps.org> wrote in message
    >> news:%23gU%23T3h6EHA.2452@TK2MSFTNGP14.phx.gbl...
    >>> Not through the TCP protocol. You can design your
    >>> own packetization on top of TCP, though.
    >>>
    >>> --
    >>> =====================================
    >>> Alexander Nickolov
    >>> Microsoft MVP [VC], MCSD
    >>> email: agnickolov@mvps.org
    >>> MVP VC FAQ: http://www.mvps.org/vcfaq
    >>> =====================================
    >>> "Steven Tang" <steven.tang@tlvsys.com> wrote in message
    >>> news:eCHrJMf6EHA.3236@TK2MSFTNGP15.phx.gbl...
    >>>>I found the problem was caused client side recv aggregated the all
    >>>> data to one. Is it possible to deny this kind of aggregate?
    >>>>
    >>>> Regards
    >>>> Steven
    >>>>
    >>>> "Steven Tang" <steven.tang@tlvsys.com> wrote in message
    >>>> news:eHL7pCa6EHA.2012@TK2MSFTNGP15.phx.gbl...
    >>>>> Hi All,
    >>>>> I'm being bothered by one very strange socket problem. I created one
    >>>>> server
    >>>>> and one client with TCP winsock, I forwarded both ASync events to
    >>>>> their window.
    >>>>> and I handle traffic behaviour inside notifination message.
    >>>>> What I want to do is: when server get one message data from client,
    >>>>> it send
    >>>>> back 10 buffers data to client. the server code look like these:
    >>>>>
    >>>>> for ( int i = 0; i < 10; i ++ ) {
    >>>>> ....
    >>>>> int lenPack = length of the buffer i
    >>>>> int iRetLen = send( clisock, Number i data buffer, , 0 );
    >>>>> OutputDebugMsg( iRetLen, lenPack, \n );
    >>>>> }
    >>>>>
    >>>>> The client side is just receive the data in the notification message.
    >>>>>
    >>>>> when I run server and the client, the client shows only got one data
    >>>>> packet
    >>>>> from the server.
    >>>>> when I run the client, line by line trace the above code in server
    >>>>> side. the
    >>>>> client shows it got all 10 data packets.
    >>>>> I added some traces code to the server and the client then run them
    >>>>> automatically,
    >>>>> the server side debug message terminal shows all ten data are send out
    >>>>> successfully
    >>>>> ( iRetLen == lenPack every time). while at client side, the terminal
    >>>>> shows
    >>>>> the client only get one notification message.
    >>>>>
    >>>>> Any comments are very appreciated.
    >>>>>
    >>>>> Regards
    >>>>> Steven
    >>>>>
    >>>>
    >>>>
    >>>
    >>>
    >>
    >>
    >
    >


  • Next message: Carl: "WPA2 Support"

    Relevant Pages

    • RE: Mapped drives connection is lost
      ... When I ping the server I get an Immediate responce with no packets being dropped. ... Regards ...
      (microsoft.public.win2000.networking)
    • Re: cant download exe files
      ... > Bernard Cheah ... > BTW, I did not use the lockdown tool to get my server into the state it is ...
      (microsoft.public.inetserver.iis.security)
    • Re: sunmanagers Digest, Vol 11, Issue 6
      ... check this e-mail and any attachments for viruses. ... > not an easy way of doing it, since my print server is ... >> Regards, ... > I did a tail on the messages file to get a stop action of the flying ...
      (SunManagers)
    • Re: Diagnose co-location networking problem
      ... it was from the client. ... Actually there's significant indication of lost packets and clues that ... 540 retransmit timeouts ... are you using any packetfiltering on the server? ...
      (freebsd-net)
    • Re: Improving FreeBSD NFS performance (esp. directory updates)
      ... >> I don't think the network is at fault, nor is the server really going ... 155645171 data packets ... discarded for bad header offset fields ... 790 connections established ...
      (freebsd-questions)