| 2 * It contains source for the ZSendPacket function. |
2 * It contains source for the ZSendPacket function. |
| 3 * |
3 * |
| 4 * Created by: Robert French |
4 * Created by: Robert French |
| 5 * |
5 * |
| 6 * $Source$ |
6 * $Source$ |
| 7 * $Author: chipx86 $ |
7 * $Author: thekingant $ |
| 8 * |
8 * |
| 9 * Copyright (c) 1987,1991 by the Massachusetts Institute of Technology. |
9 * Copyright (c) 1987,1991 by the Massachusetts Institute of Technology. |
| 10 * For copying and distribution information, see the file |
10 * For copying and distribution information, see the file |
| 11 * "mit-copyright.h". |
11 * "mit-copyright.h". |
| 12 */ |
12 */ |
| 16 static char rcsid_ZSendPacket_c[] = |
16 static char rcsid_ZSendPacket_c[] = |
| 17 "$Zephyr: /mit/zephyr/src/lib/RCS/ZSendPacket.c,v 1.29 91/03/21 11:57:08 raeburn Exp $"; |
17 "$Zephyr: /mit/zephyr/src/lib/RCS/ZSendPacket.c,v 1.29 91/03/21 11:57:08 raeburn Exp $"; |
| 18 #endif |
18 #endif |
| 19 |
19 |
| 20 #include "internal.h" |
20 #include "internal.h" |
| |
21 #ifdef WIN32 |
| |
22 #include <winsock.h> |
| |
23 #else |
| 21 #include <sys/socket.h> |
24 #include <sys/socket.h> |
| 22 |
25 #endif |
| 23 static int wait_for_hmack(); |
26 static int wait_for_hmack(); |
| 24 |
27 |
| 25 Code_t ZSendPacket(packet, len, waitforack) |
28 Code_t ZSendPacket(packet, len, waitforack) |
| 26 char *packet; |
29 char *packet; |
| 27 int len; |
30 int len; |