<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 4: ncSetSocketNonBlocking</title><link href="https://sourceforge.net/p/netclass/bugs/4/" rel="alternate"/><link href="https://sourceforge.net/p/netclass/bugs/4/feed.atom" rel="self"/><id>https://sourceforge.net/p/netclass/bugs/4/</id><updated>2010-06-28T11:12:16Z</updated><subtitle>Recent changes to 4: ncSetSocketNonBlocking</subtitle><entry><title>ncSetSocketNonBlocking</title><link href="https://sourceforge.net/p/netclass/bugs/4/" rel="alternate"/><published>2010-06-28T11:12:16Z</published><updated>2010-06-28T11:12:16Z</updated><author><name>Toster</name><uri>https://sourceforge.net/u/tosterdev/</uri></author><id>https://sourceforge.net1872347c7a9b16cfab8d7bb5f11996335561a995</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This macro causes an access violation error under windows, wxDevCpp with debugging enabled.&lt;/p&gt;
&lt;p&gt;#define ncSetSocketNonBlocking(a) ioctlsocket(a,FIONBIO,(unsigned long *)0x01)&lt;/p&gt;
&lt;p&gt;I think it's because the last argument is a pointer and winsock attempts to write something in it. As a quick fix I use&lt;/p&gt;
&lt;p&gt;unsigned long arg = 0x01;&lt;br /&gt;
ioctlsocket(m_sockfd,FIONBIO,&amp;amp;arg);&lt;/p&gt;
&lt;p&gt;But it's still kinda annoying, thought you should know.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>