sources/network/rconsession.cpp

changeset 81
a18aaf460648
parent 73
07dda51a7a8e
child 83
08bfc3d9d2ae
equal deleted inserted replaced
77:32ef969adeed 81:a18aaf460648
26 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 26 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include <time.h>
31 #include "rconsession.h" 32 #include "rconsession.h"
32 #include "../interface.h" 33 #include "../interface.h"
33 34
34 // ------------------------------------------------------------------------------------------------- 35 // -------------------------------------------------------------------------------------------------
35 // 36 //
39 m_numAdmins (0), 40 m_numAdmins (0),
40 m_interface (iface) 41 m_interface (iface)
41 { 42 {
42 if (not m_socket.set_blocking (false)) 43 if (not m_socket.set_blocking (false))
43 { 44 {
44 print_to (stderr, "unable to set socket as non-blocking: %s\n", 45 print_to (stderr, "unable to set socket as non-blocking: %1\n",
45 m_socket.error_string().chars()); 46 m_socket.error_string().chars());
46 exit (EXIT_FAILURE); 47 exit (EXIT_FAILURE);
47 } 48 }
48 } 49 }
49 50

mercurial