
CP1413plus manual
H1 Driver V3.xx for Windows NT
Rev. 00/07
7-39
7.6.2.3.4 Start sending data and continue (asynchronous)
#include <H1Def.h>
unsigned short WENTRY_C H1StarteSendenOverlapped(H1_SENDPARAMS
W_POINTER send, LPOVERLAPPED ov)
This function initiates a send task for data on an established connection and immediately returns to
the caller. The result of the function is returned via the
send
structure. The completion of the send
procedure (successful, without error) is indicated by the event in the
ov
structure. You may also
check for the termination of the send task by means of the operating system function
H1GetOverlappedResult
.
Parameters
send
pointer to a structure containing transmit parameters. The parameters
Vnr
,
DataLen
and
SendLen(=0)
must be specified. The buffer
located at the end of the structure must have a length of
sizeof(H1_SENDPARAMS) + DataLen
.
Bit 15 of element Vnr must be set if the message must form a part of a
blocked
transmission.
On
the
receiving
side
this
bit
sets
H1_BLOCKED_DATA
in the element
Fehler
. Bit 15 must never be set
in the last message of a blocked transmission.
Possible values returned by
send.Fehler
are:
0
H1_BAD_LINE
H1_WAIT_SEND
H1_NO_DRIVER
H1_NO_ADAPTER
H1_NOT_SUPPORTED
ov
pointer to a structure of the type
OVERLAPPED
. You must have
created an event previously. The event will be issued when the
connection has been closed successfully.
The function
H1GetOverlappedResult
will then return TRUE.
Returns
< >
0
An error has occurred in the operating system.
0
The send.Fehler element contains one of the above values
Note
The driver must have been opened by means of
H1DriverOpen
and the respective
connection must have been established by means of
H1StarteVerbindung
.
See also
H1SendeDaten
H1SendeDatenEx
H1StarteSenden
H1StarteSendenExOverlapped
H1AbfrageSenden
H1GetOverlappedResult
Summary of Contents for CP 1413plus
Page 2: ...jkjlj...
Page 8: ...Contents CP1413plus manual iv Rev 00 07...
Page 10: ......
Page 16: ...Special features CP1413plus manual 1 6 Rev 00 07...
Page 18: ......
Page 38: ...Standards and specifications CP1413plus manual 2 20 Rev 00 07...
Page 40: ......
Page 104: ...Entry into protocol file H1PROT_NIF CP1413plus manual 3 64 Rev 00 07...
Page 106: ......
Page 178: ...PLC Layer 7 program interface CP1413plus manual 4 72 Rev 00 07...
Page 180: ......
Page 194: ......
Page 206: ...ksdjfk...
Page 306: ......
Page 317: ...Appendix A Technical data A 1 B Abbreviations B 1 C List of figures C 1 D Index D 1...
Page 318: ...dfgdfgfdg...
Page 324: ...List of figures CP1413plus manual C 2 Rev 00 07...