This is an old revision of the document!


Distributed Processing Dev Blog

December 14, 2009

improved the Comms lib

I came to a problem that the recv function waited for data to be received instead of moving forward and sending data if nothing was to be received. To fix this there is a function called select. This function checks the line to see if there is data waiting and returns the amount that is there. This allowed the code to continue processing because the app using the connection would read the recv queue then it would push send data to the send queue. The comms thread needed to not lock on the receive function waiting for data when the data wouldn't arrive until the data in the send queue was sent.

December 13, 2009

Winsock issues

I had the program working about a month or so ago and I started it up yesterday. I got the error 10047, which is an unsupported family parameter. I just updated all my computers on my network the day before, so I'm assuming that is related. The solution to this issue was to add the parameter , to the sockaddr_in variable. That seemed to fix it. But there is another issue that has creeped up. In release mode it still throws this error. The internet says that it is due to the optimizations that Visual Studio preforms. We'll see, I haven't solved it yet.

wiki/projects/apps/distrib_proc/devblog.1264287243.txt.gz · Last modified: 2020/11/19 14:21 (external edit)
Back to top
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0