TCP-IP



         

Windows - 2


28 "Network is down", /* . */

29 "Network is unreachable", /* . */

30 "Network dropped connection on reset", /* . */

31 "Software caused connection abort", /* . */

32 "Connection reset by peer", /* . */

33 "No buffer space available", /* . */

34 "Socket is already connected", /* . */

35 "Socket is not connected", /* . */

36 "Cannot send after socket shutdown", /* He . */

37 "Too many references: can't splice", /* . */

38 "Connection timed out", /* . */

39 "Connection refused", /* . */

40 "Too many levels of symbolic links", /* . */

41 "File name too long", /* . */

42 "Host is down", /* . */

43 "No route to host" ' /* . */

44 };

45 void init ( char **argv )

46 {

47 WSADATA wsadata;

48 ( program_name = strrchr( argv[ 0 ], '\\' ) ) ?

49 program_name++ : ( program_name = argv[ 0 ] ) ;

50 WSAStartupf MAKEWORD( 2, 2 ), &wsadata );

51 }

52 /* inet_aton - inet_aton SVr4 Windows. */

53 int inet_aton( char *cp, struct in_addr *pin )

54 {

55 int rc;

56 rc = inet_addr( cp );

57 if ( rc == -1 && strcmpl cp, "255.255.255.255" ))

58 return 0;