Menu

#4 ncSetSocketNonBlocking

open
nobody
None
5
2010-06-28
2010-06-28
Toster
No

This macro causes an access violation error under windows, wxDevCpp with debugging enabled.

#define ncSetSocketNonBlocking(a) ioctlsocket(a,FIONBIO,(unsigned long *)0x01)

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

unsigned long arg = 0x01;
ioctlsocket(m_sockfd,FIONBIO,&arg);

But it's still kinda annoying, thought you should know.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.