Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
mdmx_sd.c
Package: win2ksrc.rar [view]
Upload User: caisha3
Upload Date: 2013-09-21
Package Size: 208739k
Code Size: 3k
Category:
Windows Develop
Development Platform:
Visual C++
- /* File: C:WACKERxfermdmx_sd.c (Created: 17-Jan-1994)
- * created from HAWIN
- * mdmx_sd.c -- Routines to handle xmodem displays for HA5a/G
- *
- * Copyright 1989, 1994 by Hilgraeve Inc. -- Monroe, MI
- * All rights reserved
- *
- * $Revision: 1 $
- * $Date: 10/05/98 1:16p $
- */
- #include <windows.h>
- #pragma hdrstop
- #include <setjmp.h>
- #define BYTE unsigned char
- #include <tdllstdtyp.h>
- #include <tdllsession.h>
- #include <tdllxfer_msc.h>
- #include <tdllload_res.h>
- #include <termres.h>
- #include <tdllglobals.h>
- #include <tdllfile_io.h>
- #include "xfr_srvc.h"
- #include "xfr_todo.h"
- #include "xfr_dsp.h"
- #include "xfer_tsc.h"
- #include "foo.h"
- #include "xfer.h"
- #include "xfer.hh"
- #include "mdmx.h"
- #include "mdmx.hh"
- void mdmxXferInit(ST_MDMX *xc, int method)
- {
- XFR_XY_PARAMS *pX;
- pX = (XFR_XY_PARAMS *)xfer_get_params(xc->hSession, method);
- switch (pX->nErrCheckType)
- {
- default:
- case XP_ECP_AUTOMATIC:
- xc->mdmx_chkt = UNDETERMINED;
- break;
- case XP_ECP_CRC:
- xc->mdmx_chkt = CRC;
- break;
- case XP_ECP_CHECKSUM:
- xc->mdmx_chkt = CHECKSUM;
- break;
- }
- xc->mdmx_tries = pX->nNumRetries;
- xc->mdmx_chartime = pX->nByteWait;
- xc->mdmx_pckttime = pX->nPacketWait;
- xc->p_putc = xm_putc;
- // Should we do this ?
- // xc->p_getc = xm_getc;
- xc->p_crc_tbl = NULL;
- resLoadDataBlock(glblQueryDllHinst(),
- IDT_CSB_CRC_TABLE,
- &xc->p_crc_tbl,
- (int *)0);
- }
- void mdmxdspFilecnt(ST_MDMX *pX, int cnt)
- {
- xferMsgFilecnt(pX->hSession, cnt);
- }
- void mdmxdspErrorcnt(ST_MDMX *pX, int cnt)
- {
- xferMsgErrorcnt(pX->hSession, cnt);
- }
- void mdmxdspPacketErrorcnt(ST_MDMX *pX, int cnt)
- {
- xferMsgPacketErrcnt(pX->hSession, cnt);
- }
- void mdmxdspTotalsize(ST_MDMX *pX, long bytes)
- {
- xferMsgTotalsize(pX->hSession, bytes);
- }
- void mdmxdspFilesize(ST_MDMX *pX, long fsize)
- {
- xferMsgFilesize(pX->hSession, fsize);
- }
- void mdmxdspNewfile(ST_MDMX *pX,
- int filen,
- LPSTR theirname,
- LPTSTR ourname)
- {
- xferMsgNewfile(pX->hSession,
- filen,
- theirname,
- ourname);
- }
- void mdmxdspProgress(ST_MDMX *pX,
- long stime,
- long ttime,
- long cps,
- long file_so_far,
- long total_so_far)
- {
- xferMsgProgress(pX->hSession,
- stime,
- ttime,
- cps,
- file_so_far,
- total_so_far);
- }
- void mdmxdspChecktype(ST_MDMX *pX, int ctype)
- {
- xferMsgChecktype(pX->hSession, ctype);
- }
- void mdmxdspPacketnumber(ST_MDMX *pX, long number)
- {
- xferMsgPacketnumber(pX->hSession, number);
- }
- void mdmxdspLastError(ST_MDMX *pX, int errcode)
- {
- xferMsgLasterror(pX->hSession, errcode);
- }
- void mdmxdspCloseDisplay(ST_MDMX * pX)
- {
- xferMsgClose(pX->hSession);
- }