473,387 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Client/Server Messaging with PocketPC

db
I need to write some basic code that will let me send messages to/from
a PocketPC. In the past, when I was using VB6, I did this using the
Winsock control and setting one machine as the client and the other as
the server. I assume I could take a similar approach here, but wanted
to see if anyone could give me any suggestions as to where to start.
I'm using .NET 2003 and Windows Mobile 2003 if that helps. This is
nothing really complex, I just need to send basic command strings from
the PocketPC back to the desktop - the PPC will essentially be a remote
control for the desktop application. Thanks.

-Dave

Nov 17 '05 #1
6 1736
db,

Have you taken a look at the System.Sockets namespace?

Also, you might want to consider using Remoting here, if you have .NET
on both sides. I'm not sure what the support for remoting is in the compact
framework, but if you have it, I would use it, as it woud give you much more
flexibility in the kinds of messages you can send.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"db" <da*************@hotmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I need to write some basic code that will let me send messages to/from
a PocketPC. In the past, when I was using VB6, I did this using the
Winsock control and setting one machine as the client and the other as
the server. I assume I could take a similar approach here, but wanted
to see if anyone could give me any suggestions as to where to start.
I'm using .NET 2003 and Windows Mobile 2003 if that helps. This is
nothing really complex, I just need to send basic command strings from
the PocketPC back to the desktop - the PPC will essentially be a remote
control for the desktop application. Thanks.

-Dave

Nov 17 '05 #2
db,

Have you taken a look at the System.Sockets namespace?

Also, you might want to consider using Remoting here, if you have .NET
on both sides. I'm not sure what the support for remoting is in the compact
framework, but if you have it, I would use it, as it woud give you much more
flexibility in the kinds of messages you can send.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"db" <da*************@hotmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I need to write some basic code that will let me send messages to/from
a PocketPC. In the past, when I was using VB6, I did this using the
Winsock control and setting one machine as the client and the other as
the server. I assume I could take a similar approach here, but wanted
to see if anyone could give me any suggestions as to where to start.
I'm using .NET 2003 and Windows Mobile 2003 if that helps. This is
nothing really complex, I just need to send basic command strings from
the PocketPC back to the desktop - the PPC will essentially be a remote
control for the desktop application. Thanks.

-Dave


Nov 17 '05 #3
db
Nicholas, thanks for the quick response. I'm just starting to go
through the Sockets info in the .NET help. Any limitations, concerns I
should be aware of? I think I'd rather go with TCP over UDP since the
data transfer seems more robust. Thoughts?

Nov 17 '05 #4
db,

If you can afford to have packets drop, then go with UDP. Otherwise, go
with TCP. It all depends on the requirements of your application.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"db" <da*************@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Nicholas, thanks for the quick response. I'm just starting to go
through the Sockets info in the .NET help. Any limitations, concerns I
should be aware of? I think I'd rather go with TCP over UDP since the
data transfer seems more robust. Thoughts?

Nov 17 '05 #5
Hi,
I'm not sure what the support for remoting is in the compact framework,


Nop, it's not supported :(

A TCP connection is the way to go.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Nov 17 '05 #6
db
I'm exploring some TCP code now by trying to modify some sample code.
The TCPListener I'm using on the Server side doesn't appear to be
event-driven. For the way I'm approaching this, it'd be great to have
events for "ConnectionRequestReceived" and "DataReceived." Can I try
to implement this behavior myself?

Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Wole | last post by:
I'm working on a project that requires a Web GUI connected to a server backend application. When a user clicks a button on the GUI the Web client sends a message to the server application which...
2
by: Richard Choate | last post by:
I'm writing an article and I need your informed opinions, so I ask you this: 1. Doesn't the web-enabled app generally run slower for one reason or another? 2. Isn't the fact that application...
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
0
by: rungta | last post by:
IronPython and Boo developers may find this interesting: The second refresh of the IBM Message Service Client for .NET Beta is now available: ...
1
by: Darren McDowell via .NET 247 | last post by:
I have a situation, I was wondering if someone could help me. Wehave a .net web service, it runs several transactions in sqlserver 2000. We have several clients which connect to this webservice in...
1
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005...
0
by: Divyakumar Jain,SAP Netweaver consultant | last post by:
Hi all, I have created an web service on SAP system. I have created a .net client using Micrsoft Visual Studio 2003 and .net frame work 2.0. in Visual Basic. In that .net client i have created...
8
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
Now we have some trouble to directly access to SQL Server database. I would like to know if there is a special protocol in the communication between SQL SERVER client and databse system. What is...
0
by: =?Utf-8?B?UmljaGFyZCBDb2xsZXR0ZQ==?= | last post by:
My goal is to connect a WSE 3.0 client to a WCF asp.net hosted service, utilizing MTOM encoding and if at all possible, streamedRequest transfer mode. I am starting with a basic Hello World...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.