CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Peter Robertson

Search: Search took 0.03 seconds.

  1. Replies
    11
    Views
    20,319

    Re: sendto sending UDP packets twice

    I find it hard to believe that on a network of two processors, directly connected with neither end doing anything except the process in hand, a single call to sendto can validly send the same packet...
  2. Replies
    11
    Views
    20,319

    Re: sendto sending UDP packets twice

    First, no data are being sampled; the contents of the packets being sent come from a file on the PC of fixed and known contents.
    Second, I add a sequence number to each packet being sent; Wireshark...
  3. Replies
    11
    Views
    20,319

    Re: sendto sending UDP packets twice

    Thank you for your reply, but I don't see what flow control has to do with it.

    I am sending the packets, and I send them only once each. The connection to the DSP is direct; there are no routers...
  4. Replies
    11
    Views
    20,319

    Re: sendto sending UDP packets twice

    Additional information:

    I have now got it into a state where every call to sendto results in two identical packets being issued (except the final one in the set where extra zeros are added to the...
  5. Replies
    11
    Views
    20,319

    sendto sending UDP packets twice

    I have a Windows 7 application that uses sendto to send UDP packets to a DSP.

    Fairly often, the first packet or the first two packets being send out are duplicated. I have confirmed that for each...
  6. Replies
    1
    Views
    10,315

    Time dependency on Winsock sendto

    I am running on Windows 7.

    I have a program that uses winpcap to wait for BOOTP packets to come from a destination and identify its IP address.
    It then opens a socket, call it X9, and binds it to...
  7. Replies
    1
    Views
    786

    system() fails to parse argument

    I have a very strange problem with the system() function (on XP).

    I have the following code:

    char *text1 = "\"A Space\\Action.bat\" fred";
    char *text2 = "\"A Space\\Action.bat\" \"fred\"";
    ...
  8. Replies
    0
    Views
    1,846

    NMAKE: wildcard targets

    I have a (large) number of folders A, B, C...
    Each of the folders contains a makefile to make a variety of things; other than having a makefile, the subfolders have nothing in common with each...
  9. Reading UDP packets works but only works again after a timeout.

    I have a problem that is driving me demented.

    I have a PC running XP (or W7, makes no difference) that has a direct Ethernet connection to a DSP (no routers in the way).
    After reset, the DSP...
  10. Replies
    1
    Views
    14,015

    Super Jumbo Frames on Windows

    I have a PC connected directly to a DSP by Ethernet.

    Is it possible to get Windows (XP or 7) to send frames significantly larger than 9KB?
    If so, how?
  11. Re: SetTimer/OnTimer causes file menu to flicker.

    The thread you reference seems to be suggesting what I am already doing.

    Unless I've missed something, the handler is not only called when the user clicks a menu item; as discussed earlier it is...
  12. Re: SetTimer/OnTimer causes file menu to flicker.

    void MyDoc::OnUpdateFileApplication(CCmdUI *pCmdUI) {
    pCmdUI->Enable(Running==false);
    UINT Enable = (Running==false) ? MF_BYPOSITION | MF_ENABLED
    :...
  13. Re: SetTimer/OnTimer causes file menu to flicker.

    That's essentially what I have. Unfortunately the simple call to Enable resulted in the menu never being re-enabled,
    so the code grew other stuff and that is probably causing the problem. I can...
  14. Re: SetTimer/OnTimer causes file menu to flicker.

    The call to the base class was in the original code that was commented out. Putting it back in makes no difference.

    WM_INITMENUPOPUP messages are not mentioned in the code.

    OnUpdate is handled...
  15. SetTimer/OnTimer causes file menu to flicker.

    I have a (large) application that works perfectly under XP. When I run it under Windows 7 the "File Edit View..." menu in my application flickers when everything is otherwise idle.

    I have traced...
  16. Replies
    8
    Views
    5,504

    Re: Unable to read UDP broadcasts

    Thanks for that.

    I am reminded of the advice of a very wise teacher many years ago: the number one rule of programming is "never fiddle with a user's data".

    Life would be so much easier if...
  17. Replies
    8
    Views
    5,504

    Re: Unable to read UDP broadcasts

    I do not see the relevance of this code which relates to multicast issues. My problem is clearly stated as being unable to receive broadcast packets.

    My problem has not been resolved.
  18. Replies
    8
    Views
    5,504

    Re: Unable to read UDP broadcasts

    For some reason, this board has removed all the indentation...

    #include "stdafx.h"
    #include <stdio.h>
    #include <winsock2.h>
    #pragma comment(lib, "ws2_32.lib")

    int inner_bootp(SOCKET...
  19. Replies
    8
    Views
    5,504

    Re: Unable to read UDP broadcasts

    IPv4
  20. Replies
    8
    Views
    5,504

    Unable to read UDP broadcasts

    I have a DSP connected to a Windows 7 laptop by a dedicated Ethernet connection (no routers or anything else in the way).

    The laptop has all firewalls disabled (I’ve even tried stopping the...
Results 1 to 20 of 20





Click Here to Expand Forum to Full Width

Featured