Hi,

So far I have been using RAPI to access a PocketPC from my PC when the
device is connected. Now I have a requirement to do the other way. I want to
access the PC from an application on the PocketPC.

Can someone please point me in the right direction?

Thanks in advance,

Shiva

Re: How to access a PC from an application on the PocketPC? by ctacke/>

ctacke/>
Tue Feb 27 09:22:44 CST 2007

You'll need to write a "listener" that runs on the PC. Sockets are usually
the way to go for this.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


"Shiv" <Shiv@discussions.microsoft.com> wrote in message
news:08AD577E-35EE-41D0-804E-FE9826E2C766@microsoft.com...
> Hi,
>
> So far I have been using RAPI to access a PocketPC from my PC when the
> device is connected. Now I have a requirement to do the other way. I want
> to
> access the PC from an application on the PocketPC.
>
> Can someone please point me in the right direction?
>
> Thanks in advance,
>
> Shiva
>



Re: How to access a PC from an application on the PocketPC? by Shiv

Shiv
Tue Feb 27 09:56:28 CST 2007

Hi Chris.

Thanks for your prompt response.

Socket programming is one thing i was thinking of; but for that i would need
the IP address of the PC.

I guess i could have an app on the PC pass its IP address to a process on
the PocketPC or set a value in device registry on connect but i was wondering
if there was a standard API on the PocketPC to get the IP address of the PC?

BTW, is accessing the USB directly an option? If so can you point me to some
samples or documentation to achieve this?

Thanks,

Shiva


"<ctacke/>" wrote:

> You'll need to write a "listener" that runs on the PC. Sockets are usually
> the way to go for this.
>
>
> --
> Chris Tacke - Embedded MVP
> OpenNETCF Consulting
> Managed Code in the Embedded World
> www.opennetcf.com
> --
>
>
> "Shiv" <Shiv@discussions.microsoft.com> wrote in message
> news:08AD577E-35EE-41D0-804E-FE9826E2C766@microsoft.com...
> > Hi,
> >
> > So far I have been using RAPI to access a PocketPC from my PC when the
> > device is connected. Now I have a requirement to do the other way. I want
> > to
> > access the PC from an application on the PocketPC.
> >
> > Can someone please point me in the right direction?
> >
> > Thanks in advance,
> >
> > Shiva
> >
>
>
>

Re: How to access a PC from an application on the PocketPC? by ctacke/>

ctacke/>
Tue Feb 27 10:21:23 CST 2007

For a socket over ActiveSync, resolve the hostname ppp_peer.

-Chris


"Shiv" <Shiv@discussions.microsoft.com> wrote in message
news:CA9948C8-372A-4835-8A61-43C57BBDFD25@microsoft.com...
> Hi Chris.
>
> Thanks for your prompt response.
>
> Socket programming is one thing i was thinking of; but for that i would
> need
> the IP address of the PC.
>
> I guess i could have an app on the PC pass its IP address to a process on
> the PocketPC or set a value in device registry on connect but i was
> wondering
> if there was a standard API on the PocketPC to get the IP address of the
> PC?
>
> BTW, is accessing the USB directly an option? If so can you point me to
> some
> samples or documentation to achieve this?
>
> Thanks,
>
> Shiva
>
>
> "<ctacke/>" wrote:
>
>> You'll need to write a "listener" that runs on the PC. Sockets are
>> usually
>> the way to go for this.
>>
>>
>> --
>> Chris Tacke - Embedded MVP
>> OpenNETCF Consulting
>> Managed Code in the Embedded World
>> www.opennetcf.com
>> --
>>
>>
>> "Shiv" <Shiv@discussions.microsoft.com> wrote in message
>> news:08AD577E-35EE-41D0-804E-FE9826E2C766@microsoft.com...
>> > Hi,
>> >
>> > So far I have been using RAPI to access a PocketPC from my PC when the
>> > device is connected. Now I have a requirement to do the other way. I
>> > want
>> > to
>> > access the PC from an application on the PocketPC.
>> >
>> > Can someone please point me in the right direction?
>> >
>> > Thanks in advance,
>> >
>> > Shiva
>> >
>>
>>
>>



Re: How to access a PC from an application on the PocketPC? by Shiv

Shiv
Tue Feb 27 11:47:03 CST 2007

Thanks Chris. I could use this to figure out the IP of the PC this device is
connected to.

Any ideas on using the USB connection directly ?

Thanks,

Shiva

"<ctacke/>" wrote:

> For a socket over ActiveSync, resolve the hostname ppp_peer.
>
> -Chris
>
>
> "Shiv" <Shiv@discussions.microsoft.com> wrote in message
> news:CA9948C8-372A-4835-8A61-43C57BBDFD25@microsoft.com...
> > Hi Chris.
> >
> > Thanks for your prompt response.
> >
> > Socket programming is one thing i was thinking of; but for that i would
> > need
> > the IP address of the PC.
> >
> > I guess i could have an app on the PC pass its IP address to a process on
> > the PocketPC or set a value in device registry on connect but i was
> > wondering
> > if there was a standard API on the PocketPC to get the IP address of the
> > PC?
> >
> > BTW, is accessing the USB directly an option? If so can you point me to
> > some
> > samples or documentation to achieve this?
> >
> > Thanks,
> >
> > Shiva
> >
> >
> > "<ctacke/>" wrote:
> >
> >> You'll need to write a "listener" that runs on the PC. Sockets are
> >> usually
> >> the way to go for this.
> >>
> >>
> >> --
> >> Chris Tacke - Embedded MVP
> >> OpenNETCF Consulting
> >> Managed Code in the Embedded World
> >> www.opennetcf.com
> >> --
> >>
> >>
> >> "Shiv" <Shiv@discussions.microsoft.com> wrote in message
> >> news:08AD577E-35EE-41D0-804E-FE9826E2C766@microsoft.com...
> >> > Hi,
> >> >
> >> > So far I have been using RAPI to access a PocketPC from my PC when the
> >> > device is connected. Now I have a requirement to do the other way. I
> >> > want
> >> > to
> >> > access the PC from an application on the PocketPC.
> >> >
> >> > Can someone please point me in the right direction?
> >> >
> >> > Thanks in advance,
> >> >
> >> > Shiva
> >> >
> >>
> >>
> >>
>
>
>

Re: How to access a PC from an application on the PocketPC? by r_z_aret

r_z_aret
Tue Feb 27 11:52:13 CST 2007

On Tue, 27 Feb 2007 07:11:13 -0800, Shiv
<Shiv@discussions.microsoft.com> wrote:

>Hi,
>
>So far I have been using RAPI to access a PocketPC from my PC when the
>device is connected. Now I have a requirement to do the other way. I want to
>access the PC from an application on the PocketPC.
>
>Can someone please point me in the right direction?

Chris Tacke gave one possibility. Here are two others:
ftp client on PocketPC and ftp server on PC
shared folder on PC


>
>Thanks in advance,
>
>Shiva

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com

Re: How to access a PC from an application on the PocketPC? by ctacke/>

ctacke/>
Tue Feb 27 12:19:32 CST 2007

USB doesn't work that way, so no you can't just "open" it and use it fom
communication.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


"Shiv" <Shiv@discussions.microsoft.com> wrote in message
news:F7A36F6F-E2CC-4037-9DCA-27F3E1CBC7F5@microsoft.com...
> Thanks Chris. I could use this to figure out the IP of the PC this device
> is
> connected to.
>
> Any ideas on using the USB connection directly ?
>
> Thanks,
>
> Shiva
>
> "<ctacke/>" wrote:
>
>> For a socket over ActiveSync, resolve the hostname ppp_peer.
>>
>> -Chris
>>
>>
>> "Shiv" <Shiv@discussions.microsoft.com> wrote in message
>> news:CA9948C8-372A-4835-8A61-43C57BBDFD25@microsoft.com...
>> > Hi Chris.
>> >
>> > Thanks for your prompt response.
>> >
>> > Socket programming is one thing i was thinking of; but for that i would
>> > need
>> > the IP address of the PC.
>> >
>> > I guess i could have an app on the PC pass its IP address to a process
>> > on
>> > the PocketPC or set a value in device registry on connect but i was
>> > wondering
>> > if there was a standard API on the PocketPC to get the IP address of
>> > the
>> > PC?
>> >
>> > BTW, is accessing the USB directly an option? If so can you point me to
>> > some
>> > samples or documentation to achieve this?
>> >
>> > Thanks,
>> >
>> > Shiva
>> >
>> >
>> > "<ctacke/>" wrote:
>> >
>> >> You'll need to write a "listener" that runs on the PC. Sockets are
>> >> usually
>> >> the way to go for this.
>> >>
>> >>
>> >> --
>> >> Chris Tacke - Embedded MVP
>> >> OpenNETCF Consulting
>> >> Managed Code in the Embedded World
>> >> www.opennetcf.com
>> >> --
>> >>
>> >>
>> >> "Shiv" <Shiv@discussions.microsoft.com> wrote in message
>> >> news:08AD577E-35EE-41D0-804E-FE9826E2C766@microsoft.com...
>> >> > Hi,
>> >> >
>> >> > So far I have been using RAPI to access a PocketPC from my PC when
>> >> > the
>> >> > device is connected. Now I have a requirement to do the other way. I
>> >> > want
>> >> > to
>> >> > access the PC from an application on the PocketPC.
>> >> >
>> >> > Can someone please point me in the right direction?
>> >> >
>> >> > Thanks in advance,
>> >> >
>> >> > Shiva
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>



Re: How to access a PC from an application on the PocketPC? by Shiv

Shiv
Tue Feb 27 12:19:02 CST 2007

The thing is that I want to do more than just transfer files. For that i
think socket programming fits well. Here i may be showing my ignorance since
the same might be possible using the FTP protocol.

The other thing iam trying to figure out is if i can use the USB port
directly and talk to the PC. Not sure if it has any advantages over the
socket route like speed etc. For now iam happy as i have the socket to work
with but would like to know for my own curiosity how to work with the USB
connection.

Thanks,

Shiva


"r_z_aret@pen_fact.com" wrote:

> On Tue, 27 Feb 2007 07:11:13 -0800, Shiv
> <Shiv@discussions.microsoft.com> wrote:
>
> >Hi,
> >
> >So far I have been using RAPI to access a PocketPC from my PC when the
> >device is connected. Now I have a requirement to do the other way. I want to
> >access the PC from an application on the PocketPC.
> >
> >Can someone please point me in the right direction?
>
> Chris Tacke gave one possibility. Here are two others:
> ftp client on PocketPC and ftp server on PC
> shared folder on PC
>
>
> >
> >Thanks in advance,
> >
> >Shiva
>
> -----------------------------------------
> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
>
> Robert E. Zaret, eMVP
> PenFact, Inc.
> 20 Park Plaza, Suite 478
> Boston, MA 02116
> www.penfact.com
>

Re: How to access a PC from an application on the PocketPC? by Shiv

Shiv
Tue Feb 27 12:31:28 CST 2007

Thanks chris. Iam happy to use sockets and thanks for pointing me in the
right direction.

Bye,

Shiva


"<ctacke/>" wrote:

> USB doesn't work that way, so no you can't just "open" it and use it fom
> communication.
>
>
> --
> Chris Tacke - Embedded MVP
> OpenNETCF Consulting
> Managed Code in the Embedded World
> www.opennetcf.com
> --
>
>
> "Shiv" <Shiv@discussions.microsoft.com> wrote in message
> news:F7A36F6F-E2CC-4037-9DCA-27F3E1CBC7F5@microsoft.com...
> > Thanks Chris. I could use this to figure out the IP of the PC this device
> > is
> > connected to.
> >
> > Any ideas on using the USB connection directly ?
> >
> > Thanks,
> >
> > Shiva
> >
> > "<ctacke/>" wrote:
> >
> >> For a socket over ActiveSync, resolve the hostname ppp_peer.
> >>
> >> -Chris
> >>
> >>
> >> "Shiv" <Shiv@discussions.microsoft.com> wrote in message
> >> news:CA9948C8-372A-4835-8A61-43C57BBDFD25@microsoft.com...
> >> > Hi Chris.
> >> >
> >> > Thanks for your prompt response.
> >> >
> >> > Socket programming is one thing i was thinking of; but for that i would
> >> > need
> >> > the IP address of the PC.
> >> >
> >> > I guess i could have an app on the PC pass its IP address to a process
> >> > on
> >> > the PocketPC or set a value in device registry on connect but i was
> >> > wondering
> >> > if there was a standard API on the PocketPC to get the IP address of
> >> > the
> >> > PC?
> >> >
> >> > BTW, is accessing the USB directly an option? If so can you point me to
> >> > some
> >> > samples or documentation to achieve this?
> >> >
> >> > Thanks,
> >> >
> >> > Shiva
> >> >
> >> >
> >> > "<ctacke/>" wrote:
> >> >
> >> >> You'll need to write a "listener" that runs on the PC. Sockets are
> >> >> usually
> >> >> the way to go for this.
> >> >>
> >> >>
> >> >> --
> >> >> Chris Tacke - Embedded MVP
> >> >> OpenNETCF Consulting
> >> >> Managed Code in the Embedded World
> >> >> www.opennetcf.com
> >> >> --
> >> >>
> >> >>
> >> >> "Shiv" <Shiv@discussions.microsoft.com> wrote in message
> >> >> news:08AD577E-35EE-41D0-804E-FE9826E2C766@microsoft.com...
> >> >> > Hi,
> >> >> >
> >> >> > So far I have been using RAPI to access a PocketPC from my PC when
> >> >> > the
> >> >> > device is connected. Now I have a requirement to do the other way. I
> >> >> > want
> >> >> > to
> >> >> > access the PC from an application on the PocketPC.
> >> >> >
> >> >> > Can someone please point me in the right direction?
> >> >> >
> >> >> > Thanks in advance,
> >> >> >
> >> >> > Shiva
> >> >> >
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>