CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Posts
    16

    Angry How to send packet to myself when I'm disconnected

    Hi

    I'm programming in win32 for a Windows Mobile application. So this is the trouble I'm having. In my program, I would like to send a packet to my own phone without connecting to the internet.

    If I'm connected to the internet, I could easily send a packet to myself through the connect(), send() and recv() function. But if I'm disconnected, the connect() function wouldn't work. Is there a way to send a packet to myself through another method?

    I'm also not very familiar with the whole socket concept. Since the first parameter in the send() function is a "SOCKET s", do I need to declare a new socket beforehand? If so, what parameters should I put in this socket (so that I can be "connected" to myself)?

    Thank you a lot.

    Sheri

  2. #2
    Join Date
    Jul 2009
    Posts
    16

    Re: How to send packet to myself when I'm disconnected

    Hi,

    Actually, what I need to do is to send the packet with localhost address for already opened TCP connection. If anybody could help me with that, that would be great!

    Thanks.
    Sheri

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured