473,387 Members | 1,619 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.

How to manage communications events with C#

Hi

I am relatively new to C# and OOP. I have developed a Windows application
that uses the MSComm control to dial to remote devices and retrieve some
information before hanging up. In addition the user can keep receiving until
he disconnects.

The comm class is using the MSComm control and has methods makeCall,
terminateCall etc. A caller class instantiates the comm class and calls its
methods and subscribes to the comm class's events. So in essense the calling
class calls a method (makeCall) and terminates execution until an event
signals that the expected data has arrived at which time the calling class
stores it in a database and calls the terminateCall method.

The design of the comm class handling the communications was done using
events (OnComm), such that whenever something arrives at the port I check it
, parse it and raise my own event for the caller class to pick up and update
the GUI. Furthermore the caller class disconnects the call.

I now have to make a series of such calls to a number of devices. I would
like to know how I can do that, since the calling class terminates execution
once it calls makeCall method. How do I keep control so as to loop through
all remote devices?

I am a bit confused about multi-threading, callback methods, reset events
etc.....can anyone explain?
--
Regards

Chris
Nov 17 '05 #1
0 821

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

Similar topics

0
by: Dana Morris | last post by:
Call for Participation OMG's First Annual Software-Based Communications (SBC) Workshop: From Mobile to Agile Communications http://www.omg.org/news/meetings/SBC2004/call.htm September 13-16,...
1
by: Catherine Jo Morgan | last post by:
This is for a recreational tree climbing database. When a climb is arranged, it often begins with one or more inquiries by phone or email. Sometimes it takes several communications to answer...
6
by: KS | last post by:
How can I manage my VB.NET-application via the internet ? Some sample code - please ? regards KS, Denmark
0
by: kirk | last post by:
I have three events that I have created and manage with timers. Two of the timer event handlers, the last two in the code below, need to reset state management data, if the first event handler...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.