Click to open or copy the files for the DLC sample.
This sample is a single-threaded DLC program. You need two instances of this application: one to send and one to receive. This is the typical DLC situation: simplex or half-duplex. By default, both sides use SAP 4.
This sample uses the following keywords:
acslan; acslandebugprint; acslandebugprintstring; adapter_status; array_elements; atoi; calloc; char_to_number; check_keyboard; close_adapter; closehandle; connect_station; create_buffer; createevent; defaultparametertabledump; dispatch_read_events; do_receive; do_transmit; dumpbuffercreateparms; dumpbufferfreeparms; dumpbuffergetparms; dumpccb; dumpdata; dumpdirinitializeparms; dumpdiropenadapterparms; dumpdiropendirectparms; dumpdirreadlogparms; dumpdirsetexceptionflagsparms; dumpdirsetfunctionaladdressparms; dumpdirsetgroupaddressparms; dumpdirstatusparms; dumpdirtimercancelgroupparms; dumpdirtimercancelparms; dumpdirtimersetparms; dumpdlcclosesapparms; dumpdlcclosestationparms; dumpdlcconnectstationparms; dumpdlcflowcontrolparms; dumpdlcmodifyparms; dumpdlcopensapparms; dumpdlcopenstationparms; dumpdlcreallocateparms; dumpdlcresetparms; dumpdlcsetthresholdparms; dumpdlcstatisticsparms; dumpparametertableheader; dumpparms; dumpreadcancelparms; dumpreadparms; dumpreceivecancelparms; dumpreceivedatabuffer; dumpreceivemodifyparms; dumpreceiveparms; dumptransmitdirframeparms; dumptransmitframesparms; dumptransmitiframeparms; dumptransmitparms; dumptransmitqueue; dumptransmittestcmdparms; dumptransmituiframeparms; dumptransmitxidcmdparms; dumptransmitxidrespfinalparms; dumptransmitxidrespnotfinalparms; except; exit; flow_control; fopen; fputs; free; free_buffer; get_buffer; get_funky_number; getacslandebugflags; getch; getenv; getlasterror; getsystemtime; gettickcount; handle_command_complete; handle_ctrl_c; handle_receive_data; handle_status_change; handle_transmit_complete; hex_to_num; if_debug; is_arg; is_radical_digit; isdigit; islower; isxdigit; kbhit; last_element; malloc; mapadaptertype; mapccbretcode; mapdlcstatus; mapethernettype; mapflowcontrol; maplogtype; mapmessagetype; mapoptionindicator; maprcvreadoption; mapreadevent; mapreceiveoptions; mapxmitreadoption; max; memcpy; memset; min; my_calloc; my_free; my_malloc; mydbgprint; nice_num; open_adapter; open_sap; open_station; post_read; post_receive; printf; put; putchar; puts; rand; resetevent; setacslandebugflags; signal; sleep; slush; sprintf; strcat; strchr; strcpy; strncpy; strnicmp; strupr; swap_bits; terminate; tolower; toupper; twiddle_bits; tx_i_frame; usage; va_start; vsprintf; waitforsingleobject; xtou; zap