<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>ABC for Networking With Dev-C++&amp;Allegro</title>
		<link>http://www.allegro.cc/forums/view/248919</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 25 Mar 2003 22:04:12 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p> Hi, perhaps it is a dumb question, but...<br /> I have Dev-C++, and Allegro, but<br /> how can I do any network programming?<br /> <br /> Is the library included? I come from<br /> the unix world, where I just<br /> link the net library and use <br /> functions such as bind, open,<br /> write, etc. How do I do it now???</p><p> Thanks!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ElPuerco)</author>
		<pubDate>Fri, 07 Mar 2003 08:18:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You could get libnet or HawkNL. Otherwise you would have to deal with windows sockets which are evil.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kazzmir)</author>
		<pubDate>Fri, 07 Mar 2003 08:53:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
kazzmir: Not just evil, but <a href="http://www.allegro.cc/forums/view_thread.php?_id=248429">exceptionally evil</a>. <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /><br />... but I still prefer it like that. It&#039;s more hands-on, and you learn more that way.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (X-G)</author>
		<pubDate>Fri, 07 Mar 2003 19:16:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Although I haven&#039;t implemented anything yet, there is <a href="http://www.rakkarsoft.com/">Raknet. </a> Check it out, its got a full version for non-commercial projects, and as of today, is cross platform with linux. The interface seems to be really easy as compared to doing your own sockets.</p><p>I plan on checking it out when I have some free time. I looked into libnet and HawkNL as those seem to be two that the Allegro community loves, but on the whole seem somewhat lowtech. (Sorry for not mentioning GNE Gillius, but thats above my head until you get the high level stuff finished <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" /> )</p><p>There are a few more nice networking libs floating around, my personal recommendation is to goto the gamedev.net networking forums and just try browsing around. Warning though, the gamedev crowd does not take kindly to stupid questions.</p><p>Good luck,<br />-Flecko
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Flecko)</author>
		<pubDate>Sat, 08 Mar 2003 00:53:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /></p><p> I am still having problems with this.</p><p>1. I downloaded the precompiled<br /> libraries, now how do I link my program<br /> against the library?<br /> There is a NLstatic.lib  and a HawkNL.lib<br /> should not I need a whatever.a file???</p><p>2. I downloaded the source code, tried<br />to make the .a library but the compiling<br />stops at the multithreading module.</p><p>Any help?<br />(Im sorry I just got back to bussiness<br />after a one year break)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ElPuerco)</author>
		<pubDate>Fri, 14 Mar 2003 02:56:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>1. The .lib files are for MSVC, so you can&#039;t use them with MinGW/Dev-C++. You&#039;ll have to build it from the sources.</p><p>2. The problem lies with the pthread library that HawkNL uses by default for threading in Windows. Try this: delete the .o files that were created, and then add <span class="source-code"><span class="p">#define NL_WIN_THREADS</span></span> in nl.h - this tells HawkNL to use native Windows threads instead of pthreads. Then recompile. This <i>should</i> work.</p><p>IIRC, there&#039;s no &quot;make install&quot; option, so you&#039;ll have to copy the relevant libraries and header files to the proper directories yourself.</p><p>[EDIT]<br />Weird. Now I can&#039;t get it to work. Anyway, since I still have libNL.a and NL.dll from before I lost my mojo, I uploaded them to my university account:<br /><a href="http://www.cyd.liu.se/~torha229/hawkcomp.zip">hawkcomp.zip</a> [44 kB]</p><p>[EDIT 2]<br />It seems you can get it to compile - by manually removing -lpthreadsGC from the makefile.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Fri, 14 Mar 2003 04:28:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Does MinGW have network libraries? If so, could you give me links to some networking tutorials?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Sakuera)</author>
		<pubDate>Sun, 16 Mar 2003 06:15:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Evil? Isn&#039;t WinSock a close clone of BSD Sockets? I used them to make an HTTP server. They are quite easy to use...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Sun, 16 Mar 2003 06:21:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>ARRGHH I&#039;m currently on microsoft.com and have found the freakin networking refference, but how can I download this all, not just view pages that describe one function each.</p><p><img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /><img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /><img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /><img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Sakuera)</author>
		<pubDate>Sun, 16 Mar 2003 06:38:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>use the forum search, I found a thread that linked to several good resources for WinSock.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Sun, 16 Mar 2003 06:40:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>// Nevermind, I fix the problem<br />//duh
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ElPuerco)</author>
		<pubDate>Fri, 21 Mar 2003 01:38:45 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>with the exception of doing ipv6 (takes special code) and doing asynchronous DNS lookups (get the lib adns for that) I think winsock and bsdsock are the best ways to do networking. the only exception is when you just want to throw some crap together. which I hope you aren&#039;t <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>as for hawkNL or any similar lib, I consider it close to crap. while it indeed brings you closer to the code you want, it adds another library dependance and 99% of it is just renamed commands.</p><p>the alternative (for those crap programs) is to move out all the stuff that makes sockets hard into &quot;big&quot; commands. but that will make you lose so much speed MS word will have higher FPS.</p><p>the best way is to make your own abstraction layer that suits your game the best - but then you will prefer to get your hands dirty because of the extra control it gives.</p><p>edit: and to really answer the first question:<br />winsock is the traditional bsd sock. only, you have to call a function at start and the #includes are different. so a simple #ifdef WIN32 will give you portability windows&lt;-&gt;any other OS.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Johan Henriksson)</author>
		<pubDate>Sun, 23 Mar 2003 17:05:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
,ahpgny: Go see my link at the top of this thread and try to solve my problem. Good luck to you. <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (X-G)</author>
		<pubDate>Sun, 23 Mar 2003 17:09:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>you forget I do C, not C++ <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /> that code surely does not look like ordinary sockets <img src="http://www.allegro.cc/forums/smileys/shocked.gif" alt=":o" /></p><p>Edit: but I have some well encapsulated code you can borrow that does what you want; just look me up on IRC if interested.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Johan Henriksson)</author>
		<pubDate>Tue, 25 Mar 2003 17:27:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
The class encapsulates ordinary BSD sockets. Go and actually READ them, why don&#039;t you?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (X-G)</author>
		<pubDate>Tue, 25 Mar 2003 19:25:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I'm dumb!. it had so much other &quot;crap&quot; with threads and stuff I started wondering what you were up to <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Johan Henriksson)</author>
		<pubDate>Tue, 25 Mar 2003 22:04:12 +0000</pubDate>
	</item>
</rss>
