|
|
От: | cfmm | |
| Дата: | 17.05.06 17:58 | ||
| Оценка: | |||
NCB ncb;
ZeroMemory(&ncb, sizeof(NCB));
ncb.ncb_command = NCBASTAT;
ncb.ncb_lana_num = lananum;
ncb.ncb_buffer = (PUCHAR) buffer;
ncb.ncb_length = lengthBuffer;
Netbios(&ncb);
if( ncb.ncb_retcode == NRC_CMDTMO ) //timeout
{
}ncb_rto Specifies the timeout period for receive operations. This value is specified as a multiple of 500-millisecond units. The value 0 implies no timeout. This value is set for NCBCALL and NCBLISTEN commands that affect subsequent NCBRECV commands.
ncb_sto Specifies the timeout period for send operations. You specify the value in 500-millisecond units. The value 0 implies no timeout. This value is set for NCBCALL and NCBLISTEN commands that affect subsequent NCBSEND and NCBCHAINSEND commands.