1996-09-04 07:17:43 -07:00
|
|
|
/***********************************************************************/
|
|
|
|
/* */
|
|
|
|
/* Objective Caml */
|
|
|
|
/* */
|
|
|
|
/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
|
|
|
|
/* */
|
|
|
|
/* Copyright 1996 Institut National de Recherche en Informatique et */
|
1999-11-17 10:59:06 -08:00
|
|
|
/* en Automatique. All rights reserved. This file is distributed */
|
|
|
|
/* under the terms of the GNU Library General Public License. */
|
1996-09-04 07:17:43 -07:00
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
#include <misc.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <winsock.h>
|
|
|
|
|
1997-09-02 09:01:39 -07:00
|
|
|
union sock_addr_union {
|
1996-09-04 07:17:43 -07:00
|
|
|
struct sockaddr s_gen;
|
|
|
|
struct sockaddr_in s_inet;
|
1997-09-02 09:01:39 -07:00
|
|
|
};
|
1996-09-04 07:17:43 -07:00
|
|
|
|
1997-09-02 09:01:39 -07:00
|
|
|
extern union sock_addr_union sock_addr;
|
|
|
|
extern int sock_addr_len;
|
1996-09-04 07:17:43 -07:00
|
|
|
|
1997-09-02 09:01:39 -07:00
|
|
|
void get_sockaddr (value);
|
|
|
|
value alloc_sockaddr (void);
|
|
|
|
value alloc_inet_addr (unsigned int);
|
1996-09-04 07:17:43 -07:00
|
|
|
|
|
|
|
#define GET_INET_ADDR(v) (*((uint32 *) (v)))
|