Subversion Repositories Tewi

Rev

Rev 275 | Rev 293 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 275 Rev 276
Line 1... Line 1...
1
/* $Id: server.c 275 2024-10-08 11:00:48Z nishi $ */
1
/* $Id: server.c 276 2024-10-08 11:02:04Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 157... Line 157...
157
			cm_log("Server", "setsockopt failure (reuseaddr)");
157
			cm_log("Server", "setsockopt failure (reuseaddr)");
158
			return 1;
158
			return 1;
159
		}
159
		}
160
#if !defined(__PPU__) && !defined(__minix)
160
#if !defined(__PPU__) && !defined(__minix)
161
		if(setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void*)&yes, sizeof(yes)) < 0) {
161
		if(setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void*)&yes, sizeof(yes)) < 0) {
162
#endif
-
 
163
			close_socket(sock);
162
			close_socket(sock);
164
			cm_log("Server", "setsockopt failure (nodelay)");
163
			cm_log("Server", "setsockopt failure (nodelay)");
165
			return 1;
164
			return 1;
166
		}
165
		}
167
#endif
166
#endif