Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tapi & Zmodem/Ymodem/Xmodem etc Protocols

37 views
Skip to first unread message

Damien Hinkle

unread,
Nov 24, 1997, 3:00:00 AM11/24/97
to

I'm working on writing several automated programs that log into a bulletin
board and do tons of different things. What I'm having a problem finding is
some way to implement a file upload and file downloads while using Tapi.

I know I should somehow be able to do it someway, afterall Hyperterminal
uses Tapi and it has zmodem etc file transfer protocols in it.

I was wondering if anyone out there has some simple class or library
function or something they could send me that would allow me to make a call
like xmodemsendfile and a filename etc or zmodem_recieve_file(...) etc..

Back in the dos days I would have set up an external call to DSZ, but I
can't get it to access DSZ when I'm in Windows NT if I'm using Tapi to make
the phone connection. I really need to get this done. I've also looked at
some of the commercial stuff available like greenleaf and that may be the
way I need to go but I didn't see anything in their documentation indicating
support for Tapi applications.

Help would be greatly appreciated, thanks.

********************************************************************
Damien J. Hinkle
Systems Programmer - Clearing House
The Chicago Mercantile Exchange
dhi...@cme.com


Rob Heavey

unread,
Nov 25, 1997, 3:00:00 AM11/25/97
to

Damien

Consider Tapi as the automation layer for selecting a service, dialling /
answering and connecting your call to a remote station, once you are
connected you can negotiate a live call handle from the operating system.
With that handle you can pump any data you like over the line using whatever
protocol you "Add In", through out the call Tapi is sat in background
monitoring the connection.

In your case I assume that you will be primarily
(1) selecting a service ( modem & line ).
(2) dialling a server,
(3) exchanging user name and password,
(4) traversing a menu structure,
(5) selecting andtransferring files,
(6) repeating steps 4, 5 ad infinitum until done,
(7) hanging up the call.

As far as I am aware Tapi will only help with steps 1, 2 and 7; the rest you
will have to introduce. The whole value over Tapi as far as I am concerned
is to extract yourself from the cycle of modem specific drivers and low
level port connection and line state monitoring etc.

I urge you to examine the MSDN samples "Dialit" by Nancy W. Clutz and
TapiComm by MSC, definitely play with TB20 or TB14 whatever to suit your OS.
Note the structures that the buttons use and the state messages that are
returned, you will then understand what the code has to manage.

Last but least Good Luck!

Rob Heavey
r...@rlheavey.co.uk

Damien Hinkle wrote in message <65co6n$krm$1...@nntp3.interaccess.com>...

Grant Schenck

unread,
Nov 26, 1997, 3:00:00 AM11/26/97
to

The way TAPI works is that you would use TAPI to dial a modem and then once
the call moves to a _CONNECTED calls state you would use lineGetID() to get
an open comm handle (opened by TAPI in overlapped mode). Once you have the
comm handle it's like doing IO with any comm handle (same as if you open
the port without TAPI). To do x-modem or z-modem you would have to
implement (or purchase) the protocol against the comm handle. TAPI does
not support any protocols itself (not it's responsibility). If greenleaf
doesn't use TAPI to place/receive calls then look elseware. Non-TAPI apps
will increasingly have problems getting to comm ports themselves as TAPU
will generally already have the port open for TAPI apps. After all, that's
one of the major points of TAPI, i.e., let multiple devices share a port
(although not use it at the same time).
--
Grant Schenck
sch...@compuserve.com
http://ourworld.compuserve.com/homepages/SCHENCK/

Damien Hinkle <dhi...@cme.com> wrote in article

Bruce O'Reilly

unread,
Dec 2, 1997, 3:00:00 AM12/2/97
to

Hi Damien,
It looks like we're working on similar projects. I just spent the entire
day trying to use Greenleaf Comm++ 3.0 with a connection that has already
been established by TAPI. As far as I can tell, this can't be done.
Greenleaf complains that the port is open until I shut down TAPI, but that
defeats the purpose of TAPI. Eventually, one of us will solve this
problem. If I get there first, I'll let you know.

Bruce O'Reilly
Chase Credit Systems

0 new messages