<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[James's Programming Page — ENet for C#]]></title>
	<link rel="self" href="https://swforum.seekye.com/feed/atom/topic/10067/" />
	<updated>2013-04-24T15:52:23Z</updated>
	<generator>PunBB</generator>
	<id>https://swforum.seekye.com/topic/10067/</id>
		<entry>
			<title type="html"><![CDATA[Re: ENet for C#]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/12911/#p12911" />
			<content type="html"><![CDATA[<p>It will indeed work on MacOS, and I did recently acquire a MacBook for USB driver development.<br />So, I&#039;ve included a MacOS 32/64-bit binary in the now-posted 1.3.6.3 release. Please let me know if you run into any issues with it.</p><p>Have a good day</p><p>James</p>]]></content>
			<author>
				<name><![CDATA[Zer]]></name>
				<uri>https://swforum.seekye.com/user/2/</uri>
			</author>
			<updated>2013-04-24T15:52:23Z</updated>
			<id>https://swforum.seekye.com/post/12911/#p12911</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ENet for C#]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/12910/#p12910" />
			<content type="html"><![CDATA[<p>Awesome! Your new version (ENet_2013-04-23) works fine. Dll mapping is no longer required. The IPs are also being correctly displayed now.<br />I hope they manage to fix the bug in Mono soon.<br />My libenet1a version is: libenet1a:amd64 1.3.3-2ubuntu1.</p><p>Would ENetCS work on MacOS in Mono, too? Unfortunately I don&#039;t have a Mac and are not much familiar with it. However in the past, some tried to play and port our project to Mac. Maybe I&#039;ll find someone to test it.</p><p>Anyways, thanks a lot for the new version and the bug workaround.</p><p>Regards</p>]]></content>
			<author>
				<name><![CDATA[Random]]></name>
				<uri>https://swforum.seekye.com/user/14121/</uri>
			</author>
			<updated>2013-04-23T21:03:45Z</updated>
			<id>https://swforum.seekye.com/post/12910/#p12910</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ENet for C#]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/12909/#p12909" />
			<content type="html"><![CDATA[<p>I&#039;ve found your address bug, and submitted it at <a href="https://bugzilla.xamarin.com/show_bug.cgi?id=11899">https://bugzilla.xamarin.com/show_bug.cgi?id=11899</a>. It&#039;s a bug in Mono&#039;s P/Invoke. Luckily, it&#039;s easy to work around. Here&#039;s a version to try:</p><p><a href="http://www.zer7.com/files/oss/enetcs/ENet_2013-04-23.zip">http://www.zer7.com/files/oss/enetcs/EN … -04-23.zip</a></p><p>Let me know how this one works for you. My test Kubuntu virtual machine (x86-64) now does Peer.GetRemoteAddress() correctly.</p><p>James</p>]]></content>
			<author>
				<name><![CDATA[Zer]]></name>
				<uri>https://swforum.seekye.com/user/2/</uri>
			</author>
			<updated>2013-04-23T14:52:20Z</updated>
			<id>https://swforum.seekye.com/post/12909/#p12909</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ENet for C#]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/12908/#p12908" />
			<content type="html"><![CDATA[<p>Hello James,</p><p>thanks for you quick reply. Yeah, I am on Linux Mint 14.</p><p>We are using at the moment ENetCS 1.3.1 in ManicDigger (a free C# Minecraft clone).<br />I am trying to fix an issue where the server displays wrong IPs of the connected clients (manicdigger.sourceforge.net/forum/viewtopic.php?f=9&amp;t=2832). <br />This problem only appears on Linux machines. On Windows it works fine.<br />I don&#039;t know if it&#039;s a problem of Mono, the ENet library or our code.<br />However I saw in the changelog of version 1.3.3 of ENetCS:<br /></p><div class="quotebox"><blockquote><p>&quot;Replaced the Address struct with native .NET IPEndPoint.&quot;</p></blockquote></div><p>I thought it may fix my problem.</p><p>At the moment the code which returns an peer&#039;s IP is:<br /></p><div class="codebox"><pre><code>public unsafe IPEndPoint RemoteEndPoint
{
    get { return new IPEndPoint(peer.NativeData-&gt;address.host, peer.NativeData-&gt;address.port); }
}</code></pre></div><p>I also tried ENetCS 1.3.6.2. A few changes in our code where necessary and I had map the ENetX64.dll to libenet.so like you described. However I didn&#039;t manage to establish a connection between a client and server yet.</p><p>I also updated Mono to version 3.0.6 and manually installed the latest ENet version. Both didn&#039;t fix our IP issue.<br />I am going to try your latest version you&#039;ve posted.</p><p>Do you have any idea what the problem could be?</p><p>Thank you very much for your great C# ENet wrapper.</p><p>Regards</p>]]></content>
			<author>
				<name><![CDATA[Random]]></name>
				<uri>https://swforum.seekye.com/user/14121/</uri>
			</author>
			<updated>2013-04-23T10:44:53Z</updated>
			<id>https://swforum.seekye.com/post/12908/#p12908</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ENet for C#]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/12907/#p12907" />
			<content type="html"><![CDATA[<p>Here, try this version and let me know if it works reasonably well for you:</p><p><a href="http://www.zer7.com/files/oss/enetcs/ENet_1_3_6_3.zip">http://www.zer7.com/files/oss/enetcs/ENet_1_3_6_3.zip</a></p>]]></content>
			<author>
				<name><![CDATA[Zer]]></name>
				<uri>https://swforum.seekye.com/user/2/</uri>
			</author>
			<updated>2013-04-23T04:34:50Z</updated>
			<id>https://swforum.seekye.com/post/12907/#p12907</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ENet for C#]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/12906/#p12906" />
			<content type="html"><![CDATA[<p>Hi Random,</p><p>Hmm... This is an interesting request. Are you on Linux by any chance? I hadn&#039;t realized ENet was packaged, but it does indeed appear to be 1.3.3...</p><p>The only binary incompatibility you should encounter with the library is that Peer.SetPingInterval and Peer.SetTimeouts require 1.3.4+. If you avoid these two functions, you&#039;ll be able to use the 1.3.6 library just fine with 1.3.3. If it doesn&#039;t work, that&#039;s a bug I ought to fix.</p><p>That said, you will need to use Mono&#039;s DLL Map feature to map from ENetX86.dll to libenet.so.1.</p><p>Alternatively, I could make a version that searches for libenet.so.1 automatically (needing no DLL Map), and throws NotSupportedException if you happen to use either of those two methods. If I were to code up such a version, would you be interested in testing it for me?</p><p>James</p>]]></content>
			<author>
				<name><![CDATA[Zer]]></name>
				<uri>https://swforum.seekye.com/user/2/</uri>
			</author>
			<updated>2013-04-23T00:04:16Z</updated>
			<id>https://swforum.seekye.com/post/12906/#p12906</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ENet for C#]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/12905/#p12905" />
			<content type="html"><![CDATA[<p>Hi,<br />could you upload version 1.3.3 of ENet for C#. Unfortunately the version is not linked on the project site.<br />Thank you.</p><p>Regards</p>]]></content>
			<author>
				<name><![CDATA[Random]]></name>
				<uri>https://swforum.seekye.com/user/14121/</uri>
			</author>
			<updated>2013-04-22T19:44:21Z</updated>
			<id>https://swforum.seekye.com/post/12905/#p12905</id>
		</entry>
</feed>
