TCP-IP



         

Windows


2.2 , , Windows.

2.2. Windows

1 #include <sys/timeb.h>

2 #include "etcp.h"

3 #include <winsock2.h>

4 #define MINBSDSOCKERR ( WSAEWOULDBLOCK )

5 #define MAXBSDSOCKERR ( MINBSDSOCKERR + \

6 ( sizeof( bsdsocketerrs ) / \

7 sizeof( bsdsocketerrs[ 0 ] ) ) )

8 extern int sys_nerr;

9 extern char *sys_errlist [];

10 extern char *program_name;

11 static char *bsdsocketerrs [] =

12 {

13 "Resource temporarily unavailable", /* . */

14 "Operation now in progress", /* . */

15 "Operation already in progress", /* . */

16 "Socket operation on non-socket", /* . */

17 "Destination address required", /* . */

18 "Message too long", /* . */

19 "Protocol wrong type for socket", /* . */

20 "Bad protocol option", /* . */

21 "Protocol not supported", /* . */

22 "Socket type not supported", /* . */

23 "Operation not supported", /* . */

24 "Protocol family not supported", /* . */

25 "Address family not supported by protocol family", /* */

26 "Address already in use", /* . */

27 "Can't assign requested address", /* He . */