Original Post
I have a linux project but I want to change it to be a windows project.
I meet two probelm.
First, the windows'winsock does not have MSG_DONTWAIT. How do I transfer the code as below to windows syntax?
send( socket, buffer, length, MSG_DONTWAIT );
Second, which funcotion in windows map to the setrlimit function of linux?
struct rlimit rt;
rt.rlim_max = rt.rlim_cur = 50;
setrlimit( RLIMIT_NOFILE, &rt );
I meet two probelm.
First, the windows'winsock does not have MSG_DONTWAIT. How do I transfer the code as below to windows syntax?
send( socket, buffer, length, MSG_DONTWAIT );
Second, which funcotion in windows map to the setrlimit function of linux?
struct rlimit rt;
rt.rlim_max = rt.rlim_cur = 50;
setrlimit( RLIMIT_NOFILE, &rt );