473,797 Members | 2,970 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Modem connection

I am writing an application that dial from one modem to another in oreder to
transfer data. I need to know what is the best way for it - using the
SerialPort class or TAPI ?

Thank you for your help
Jan 30 '07 #1
1 1099
Hi,

When using a modem for PC to PC transfer, you should use a file transfer
protocol -- even with error-correcting modems -- to make the process
comparatively simple. The SerialPort class has no built-in file transfer
capability. You can add this in code.

TAPI provides "transparen t dialing," but it has no file transfer capability,
so if you were to use TAPI, you still would either have to write the code
for that portion.

You can download XMComm2004.dll from my homepage. This is a wrapper around
the SerialPort object that adds XMODEM error-checked file transfers (both
CRC and Checksum). The source code for this control is in my book (see
below). I also have code examples that illustrate automated file transfers
using this an similar controls.

Also, Sax (www.sax.net) has a more sophisticated communications library for
..NET that offers additional file transfer protocols. There also are a few
other .NET libraries available, though Sax is the only one with which I have
"hands-on" familiarity.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Jan 30 '07 #2

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

Similar topics

0
1432
by: Dany | last post by:
Hi, everybody: How can I establish a connection using my modem in .NET? I want my application to initialize the modem, place a call and prepare all of the settings needed to create a TCP Socket and begin a normal communication; I mean, I want to automatically initialize
0
1187
by: RobinB | last post by:
I need to make a modem to modem connection initiated by a VB.Net application? Does anyboday have any idea how to do this?
2
3554
by: Frank an der Heiden | last post by:
Hi folks, I have a problem with the following example: ###################################################### My Receiver Class ***************** class UdpReceiver {
3
3010
by: Clemens Chiba - Greentube I.E.S. AG | last post by:
Hi! If the user has no LAN connection I have to dialup to the internet in my application. This works fine, but in some case I'll have to change the phone number (if the provider changes) and the additional init string of the modem (for instance if the modem does not detect the dial tone). So, how do I do this?
7
1473
by: Just Me | last post by:
Sometimes I hear the MODEM dialing and I don't know why. Is there some way I can use VB to tell which program is causing it? I'm on a LAN so it may be a remote program. Thanks
1
1295
by: Trammel | last post by:
Anyone know how I would go about getting a CLID (Callers telephone number) from a normal 56k-flex modem (and if possible... without answering it using the modem) ?
0
1090
by: gad | last post by:
I am dialing a modem with vs2005 .net 2.0. Connection between modems is ok but windows does not write the connection details in the modem log file. Why is that? How can i force windows to write the connection details to the modem log file (Modemlog.txt )?
1
1659
by: vgonepudi | last post by:
Hi, Requirement: I want to send numeric message to pager. For that I have developed an application in VC++. My application takes pager number as input and dials that number through my local modem. After establishing the connection I am getting a message like "Enter numeric message after beep". 1) How can I find whether connection is established or not?
6
3368
by: ConsoleElosnoc | last post by:
Hi everyone =), Okay, this is not my problem.. this is my friend's problem (He lives in NY and I live in Vancouver) so I couldn't be physically there to see what's wrong... By chance (or a miracle) I searched on google and ended up here =D! Here's the problem: My friend has a pretty decent computer/ High Speed Internet/ Cable Modem.. He used to be able to host CS(it's a game) Servers up until 2 nights ago when it suddenly crashed......
0
1604
by: coaxfiber | last post by:
Hello, I have problem using dial-up connection with Fedora. My modem is not detected by the system.I have tried to install some drivers (*.tar) but didn't work.I'm not sure if this modem is not supported or detected or some configuration is just missing.Using my modem with my Win-XP works fine. What should I use with these selections? -------------------------------------------------------------------------------- From System Settings...
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9536
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10468
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10245
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9063
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7559
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5458
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4131
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.