<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -113,3 +113,4 @@ daemons saslauthd and pwcheck.
 19Jan08: Supported IPv6 addresses.
 30Apr08: Set the NODELAY option on sockets that we connect to other servers.
 	Omission noted by Roger Pack.
+14May08: Generated a 0.12 release.</diff>
      <filename>ChangeLog</filename>
    </modified>
    <modified>
      <diff>@@ -1181,7 +1181,7 @@ struct sockaddr *name2address (const char *server, int port, int *family, int *b
 	if (!server || !*server)
 		server = &quot;0.0.0.0&quot;;
 
-	bzero (&amp;in4, sizeof(in4));
+	memset (&amp;in4, 0, sizeof(in4));
 	if ( (in4.sin_addr.s_addr = inet_addr (server)) != INADDR_NONE) {
 		if (family)
 			*family = AF_INET;
@@ -1192,7 +1192,8 @@ struct sockaddr *name2address (const char *server, int port, int *family, int *b
 		return (struct sockaddr*)&amp;in4;
 	}
 
-	bzero (&amp;in6, sizeof(in6));
+	#ifdef OS_UNIX
+	memset (&amp;in6, 0, sizeof(in6));
 	if (inet_pton (AF_INET6, server, in6.sin6_addr.s6_addr) &gt; 0) {
 		if (family)
 			*family = AF_INET6;
@@ -1202,6 +1203,15 @@ struct sockaddr *name2address (const char *server, int port, int *family, int *b
 		in6.sin6_port = htons (port);
 		return (struct sockaddr*)&amp;in6;
 	}
+	#endif
+
+	#ifdef OS_WIN32
+	// TODO, must complete this branch. Windows doesn't have inet_pton.
+	// A possible approach is to make a getaddrinfo call with the supplied
+	// server address, constraining the hints to ipv6 and seeing if we
+	// get any addresses.
+	// For the time being, Ipv6 addresses aren't supported on Windows.
+	#endif
 
 	hp = gethostbyname ((char*)server); // Windows requires the cast.
 	if (hp) {</diff>
      <filename>ext/em.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -76,7 +76,8 @@ typedef int SOCKET;
 #ifdef OS_WIN32
 #define WIN32_LEAN_AND_MEAN
 #include &lt;windows.h&gt;
-#include &lt;winsock.h&gt;
+#include &lt;winsock2.h&gt;
+#include &lt;ws2tcpip.h&gt;
 #include &lt;rpc.h&gt;
 #include &lt;fcntl.h&gt;
 #include &lt;assert.h&gt;</diff>
      <filename>ext/project.h</filename>
    </modified>
    <modified>
      <diff>@@ -25,7 +25,7 @@
 
 module EventMachine
 
-  VERSION = &quot;0.11.0&quot;
+  VERSION = &quot;0.12.0&quot;
 
 end
 </diff>
      <filename>lib/eventmachine_version.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e79cfa214ce460108956db2a09135a1c68903e3f</id>
    </parent>
  </parents>
  <author>
    <name>francis</name>
    <email>francis@2c60eb90-88cd-488e-9351-1edcb1d70dbc</email>
  </author>
  <url>http://github.com/espace/eventmachine/commit/28e51a847b66c846f00c00154225d7f0458efd17</url>
  <id>28e51a847b66c846f00c00154225d7f0458efd17</id>
  <committed-date>2008-05-14T14:21:10-07:00</committed-date>
  <authored-date>2008-05-14T14:21:10-07:00</authored-date>
  <message>Tweaked includes and some code so that the IPv6 support will compile on Windows.

git-svn-id: http://rubyeventmachine.com/svn/trunk@686 2c60eb90-88cd-488e-9351-1edcb1d70dbc</message>
  <tree>107e578cdaaf2b68666b45d9acaec13a3e2a47c8</tree>
  <committer>
    <name>francis</name>
    <email>francis@2c60eb90-88cd-488e-9351-1edcb1d70dbc</email>
  </committer>
</commit>
