… | |
… | |
139 | |
139 | |
140 | ns->sent_scroll = 0; |
140 | ns->sent_scroll = 0; |
141 | ns->host = strdup_local (from_ip); |
141 | ns->host = strdup_local (from_ip); |
142 | |
142 | |
143 | { |
143 | { |
144 | SockList sl (MAXSOCKBUF); |
144 | packet sl; |
145 | |
145 | |
146 | sl.printf ("version %d %d %s\n", VERSION_CS, VERSION_SC, VERSION_INFO); |
146 | sl.printf ("version %d %d %s\n", VERSION_CS, VERSION_SC, VERSION_INFO); |
147 | Send_With_Handling (ns, &sl); |
147 | Send_With_Handling (ns, &sl); |
148 | sl.free (); |
|
|
149 | } |
148 | } |
150 | |
149 | |
151 | #ifdef CS_LOGSTATS |
150 | #ifdef CS_LOGSTATS |
152 | if (socket_info.nconns > cst_tot.max_conn) |
151 | if (socket_info.nconns > cst_tot.max_conn) |
153 | cst_tot.max_conn = socket_info.nconns; |
152 | cst_tot.max_conn = socket_info.nconns; |