|
-
August 11th, 2009, 07:53 PM
#1
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
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|