ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/lowlevel.C
(Generate patch)

Comparing deliantra/server/socket/lowlevel.C (file contents):
Revision 1.101 by root, Sat Dec 1 20:22:13 2018 UTC vs.
Revision 1.102 by root, Wed Dec 5 19:03:27 2018 UTC

18 * and the GNU General Public License along with this program. If not, see 18 * and the GNU General Public License along with this program. If not, see
19 * <http://www.gnu.org/licenses/>. 19 * <http://www.gnu.org/licenses/>.
20 * 20 *
21 * The authors can be reached via e-mail to <support@deliantra.net> 21 * The authors can be reached via e-mail to <support@deliantra.net>
22 */ 22 */
23
24using namespace std;
25 23
26#include <global.h> 24#include <global.h>
27#include <sproto.h> 25#include <sproto.h>
28#include <cstdarg> 26#include <cstdarg>
29 27
31# include <sys/types.h> 29# include <sys/types.h>
32# include <sys/socket.h> 30# include <sys/socket.h>
33# include <netinet/in.h> 31# include <netinet/in.h>
34# include <netinet/tcp.h> 32# include <netinet/tcp.h>
35#endif 33#endif
34
35using namespace std;
36 36
37// force a packet when idle for more than this many seconds, 37// force a packet when idle for more than this many seconds,
38// forcing an ack regularly. 38// forcing an ack regularly.
39#define IDLE_PING 2. 39#define IDLE_PING 2.
40 40

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines