tcpops.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * Copyright 2015 (C) Orange
  3. * <[email protected]>
  4. *
  5. * This file is part of Kamailio, a free SIP server.
  6. *
  7. * This file is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version
  11. *
  12. *
  13. * This file is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. *
  22. */
  23. #ifndef TCP_KEEPALIVE_H_
  24. #define TCP_KEEPALIVE_H_
  25. #include "../../tcp_conn.h"
  26. int tcpops_get_current_fd(int conid, int *fd);
  27. int tcpops_acquire_fd_from_tcpmain(int conid, int *fd);
  28. int tcpops_keepalive_enable(int fd, int idle, int count, int interval, int closefd);
  29. int tcpops_keepalive_disable(int fd, int closefd);
  30. int tcpops_set_connection_lifetime(struct tcp_connection* con, int time);
  31. #endif /* TCP_KEEPALIVE_H_ */