473,386 Members | 1,835 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,386 software developers and data experts.

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 1084
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 "transparent 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
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...
0
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
by: Frank an der Heiden | last post by:
Hi folks, I have a problem with the following example: ###################################################### My Receiver Class ***************** class UdpReceiver {
3
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...
7
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
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
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...
1
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...
6
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...
0
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...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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?
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
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
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,...

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.