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
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