none
adapting httpsvr sample to receive a message and send an acknowledgement RRS feed

  • Question

  • Hi,

    I am adapting a VC++ MSDN sample httpsvr to receive a message and return an acknowledgement which stops the client repeating the message. I can see the message arriving and the software going through the motions of send the acknowledgement. Is there any way I can check if the acknowledgement has been sent to the port?

    Any help gratefully appreciated

    Sam

    Wednesday, April 17, 2013 2:40 PM

All replies

  • Yes. You can use a network sniffer, like Wireshark.
    Wednesday, April 17, 2013 3:25 PM
  • Hi,

    According to your description, your issue may  not have a solid answer; I think it should be better if we change the thread type to General Discussion.

    Thanks for your understanding and active participation in the MSDN Forum.
    Regards,


    Elegentin Xie
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, April 18, 2013 5:51 AM
  • Thanks for the comment Elegentine, I decided this was the best place for this as there are probably better qualified than me who have had this problem rather than Office users.

    It was with Microsoft Network Monitor that I saw the messages arrive in addition to the debugger.

    Thursday, April 18, 2013 7:55 AM
  • I am trying to send the acknowledgement using

    Send( (LPSTR)cSendBuffer, m_cbOut );

    where char cSendBuffer[] = "#OK"

    int m_cbOut = 3;

    Do I need to put 'http' in the string?

    Sam

    Thursday, April 18, 2013 9:56 AM
  • Hi,

    Based on your description, your problems is about Winsock, I’d move the thread to Windows Desktop Winsock Kernel (WSK) ,since we here only discuss general native C++ problems on developing.

    Thanks for your understanding.
    Regards,


    Elegentin Xie
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, April 19, 2013 5:35 AM
  • Thanks, I did not know this place existed!
    Friday, April 19, 2013 9:11 AM
  • This is part of the message that I am receiving from the client.

    HTTP:Request, GET //, Querty:c=sam1%20%20Goil%20%20Reading%20%20:%20%200

    Is it because the format is not correct for html that it is not responding? The port forwarding is set up for a http server.

    Friday, April 19, 2013 2:55 PM