home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
ck190b.zip
/
P200.INI
< prev
next >
Wrap
Text File
|
1994-08-20
|
7KB
|
156 lines
; FILE CKOP200.INI - Macros for invoking P version 2.00 from OS/2 C-Kermit.
;
; Jeffrey Altman, Altmania Productions and Seer Technologies
; <p00118@psilink.com>
; August 1994
;
; P is an external protocol package providing X-modem, Y-modem, Y-modem-G
; and Z-modem send and receive capabilities on OS/2 via Serial, IBM TCP/IP,
; and Named Pipe connections.
;
; The P protocol dynamic link library is freeware available from most major
; ftp sites, bulletin board services and CompuServe. From the documentation:
;
;"3. Distribution policy
;
; P.EXE - the front-end for the DLL is distributed as public
; domain, which means that anyone can modify and recompile the
; sources and do whatever they want with it. However, credits to
; the original author (me) would be highly appreciated but not
; required, if found so repugnant.
;
; P.DLL - the transfer protocol engine is distributed as
; freeware, which means that the author (me) wants to keep his
; copyright to the program but gives everyone the right to use
; and copy it freely, without of charge."
;
; P version 2.00 was designed with OS/2 C-Kermit in mind. The following
; macro definitions provide X,Y, and Z modem file send and receive
; capabilities on all connection types supported by OS/2 C-Kermit excluding
; NetBIOS and DecNET.
;
; Commands:
; sz/rz - send/receive with Zmodem
; sy/ry - send/receive with Ymodem
; sg/rg - send/receive with Ymodem-G
; sx/rx - send/receive with Xmodem
echo Initializing X,Y,YG,Z-modem support using P version 2.00...
; Send via Zmodem
define sz, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "sz not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -handle \v(ttyfd) -speed \v(speed) -commbufs 4096 -
-filebuf 8192 -protocol zmodem -send \%1, end, -
:pipe, !p.exe -type pipe -handle \v(ttyfd) -commbufs 4096 -filebuf 32768 -
-protocol zmodem -send \%1, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -commbufs 4096 -
-filebuf 32768 -protocol zmodem -send \%1, end
; Receive via Zmodem
define rz, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "rz not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -handle \v(ttyfd) -speed \v(speed) -
-commbufs 4096 -filebuf 8192 -protocol zmodem -receive, end, -
:pipe, !p.exe -type pipe -handle \v(ttyfd) -commbufs 4096 -filebuf 32768 -
-protocol zmodem -receive, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -commbufs 4096 -
-filebuf 32768 -protocol zmodem -receive, end
; Send via Ymodem-G
define sg, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "sy not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -handle \v(ttyfd) -speed \v(speed) -
-commbufs 4096 -filebuf 8192 -protocol ymodem-g -send \%1, end, -
:pipe, !p.exe -type pipe -handle \v(ttyfd) -commbufs 4096 -filebuf 32768 -
-protocol ymodem-g -send \%1, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -commbufs 4096 -
-filebuf 32768 -protocol ymodem-g -send \%1, end
; Receive via Ymodem-G
define rg, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "ry not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -handle \v(ttyfd) -speed \v(speed) -
-commbufs 4096 -filebuf 8192 -protocol ymodem-g -receive, end, -
:pipe, !p.exe -type pipe -handle \v(ttyfd) -commbufs 4096 -filebuf 32768 -
-protocol ymodem-g -receive, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -commbufs 4096 -
-filebuf 32768 -protocol ymodem-g -receive, end
; Send via Ymodem
define sy, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "sy not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -handle \v(ttyfd) -speed \v(speed) -
-commbufs 4096 -filebuf 8192 -protocol ymodem -send \%1, end, -
:pipe, !p.exe -type pipe -handle \v(ttyfd) -commbufs 4096 -filebuf 32768 -
-protocol ymodem -send \%1, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -commbufs 4096 -
-filebuf 32768 -protocol ymodem -send \%1, end
; Receive via Ymodem
define ry, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "ry not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -handle \v(ttyfd) -speed \v(speed) -
-commbufs 4096 -filebuf 8192 -protocol ymodem -receive, end, -
:pipe, !p.exe -type pipe -handle \v(ttyfd) -commbufs 4096 -filebuf 32768 -
-protocol ymodem -receive, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -commbufs 4096 -
-filebuf 32768 -protocol ymodem -receive, end
; Send via Xmodem
define sx, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "sx not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -handle \v(ttyfd) -speed \v(speed) -commbufs 4096 -
-filebuf 8192 -protocol xmodem -send \%1, end, -
:pipe, !p.exe -type pipe -handle \v(ttyfd) -commbufs 4096 -filebuf 32768 -
-protocol xmodem -send \%1, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -commbufs 4096 -
-filebuf 32768 -protocol xmodem -send \%1, end
; Receive via Xmodem
define rx, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "rx not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -handle \v(ttyfd) -speed \v(speed) -commbufs 4096 -
-filebuf 8192 -protocol xmodem -receive, end, -
:pipe, !p.exe -type pipe -handle \v(ttyfd) -commbufs 4096 -filebuf 32768 -
-protocol xmodem -receive, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -commbufs 4096 -
-filebuf 32768 -protocol xmodem -receive, end