]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Wed Jun 3 12:25:19 CDT 2009 Pekka Pessi <first.last@nokia.com>
authorMichael Jerris <mike@jerris.com>
Thu, 25 Jun 2009 18:43:54 +0000 (18:43 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 25 Jun 2009 18:43:54 +0000 (18:43 +0000)
  * tport_type_udp.c: added field names to tport_vtable_t initialization

Wed Jun  3 12:25:52 CDT 2009  Pekka Pessi <first.last@nokia.com>
  * tport_type_tcp.c: added field names to tport_vtable_t initialization

Wed Jun  3 12:29:13 CDT 2009  Pekka Pessi <first.last@nokia.com>
  * tport_threadpool.c: added field names to tport_vtable_t initialization

Wed Jun  3 12:29:41 CDT 2009  Pekka Pessi <first.last@nokia.com>
  * tport_type_connect.c: added field names to tport_vtable_t initialization

Wed Jun  3 12:30:01 CDT 2009  Pekka Pessi <first.last@nokia.com>
  * tport_type_stun.c: added field names to tport_vtable_t initialization

Wed Jun  3 12:30:17 CDT 2009  Pekka Pessi <first.last@nokia.com>
  * tport_type_sctp.c: added field names to tport_vtable_t initialization

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13956 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/tport/tport_threadpool.c
libs/sofia-sip/libsofia-sip-ua/tport/tport_type_connect.c
libs/sofia-sip/libsofia-sip-ua/tport/tport_type_sctp.c
libs/sofia-sip/libsofia-sip-ua/tport/tport_type_stun.c
libs/sofia-sip/libsofia-sip-ua/tport/tport_type_tcp.c
libs/sofia-sip/libsofia-sip-ua/tport/tport_type_udp.c

index f209d4f940c9b4784d81d323e8014688f1cad396..6dae18dded853ded55cd1c406a523825e975a222 100644 (file)
@@ -1 +1 @@
-Tue Jun 23 14:48:51 CDT 2009
+Thu Jun 25 13:42:28 CDT 2009
index 43388434a70cd8fd05fd5494eb039c4d5c8b7ab0..31665e7503087c3346d3aa865484fee83e21b174 100644 (file)
@@ -129,22 +129,27 @@ static int tport_thread_send(tport_t *tp,
 
 tport_vtable_t const tport_threadpool_vtable =
 {
-  "udp", tport_type_local,
-  sizeof (tport_threadpool_t),
-  tport_threadpool_init_primary,
-  tport_threadpool_deinit_primary,
-  NULL,
-  NULL,
-  0,                           /* No secondary transports! */
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  tport_recv_dgram,
-  tport_send_dgram,
-  NULL,
-  tport_thread_send
+  /* vtp_name               */ "udp",
+  /* vtp_public              */ tport_type_local,
+  /* vtp_pri_size            */ sizeof (tport_threadpool_t),
+  /* vtp_init_primary        */ tport_threadpool_init_primary,
+  /* vtp_deinit_primary      */ tport_threadpool_deinit_primary,
+  /* vtp_wakeup_pri          */ NULL,
+  /* vtp_connect             */ NULL,
+  /* vtp_secondary_size      */ 0, /* No secondary transports! */
+  /* vtp_init_secondary      */ NULL,
+  /* vtp_deinit_secondary    */ NULL,
+  /* vtp_shutdown            */ NULL,
+  /* vtp_set_events          */ NULL,
+  /* vtp_wakeup              */ NULL,
+  /* vtp_recv                */ tport_recv_dgram,
+  /* vtp_send                */ tport_send_dgram,
+  /* vtp_deliver             */ NULL,
+  /* vtp_prepare             */ tport_thread_send,
+  /* vtp_keepalive           */ NULL,
+  /* vtp_stun_response       */ NULL,
+  /* vtp_next_secondary_timer*/ NULL,
+  /* vtp_secondary_timer     */ NULL,
 };
 
 static int thrp_udp_init(su_root_t *, threadpool_t *);
@@ -809,4 +814,5 @@ void thrp_udp_send_report(su_root_magic_t *magic,
     tport_error_report(tp, tpd->tpd_errorcode, msg_addr(tpd->tpd_msg));
 
   msg_ref_destroy(tpd->tpd_msg);
+
 }
index 7401ff37a5db7e6eb2210fa92a1def2dfbe4a6de..72b212f728c08edbfd3f7e47c21f49fab345224c 100644 (file)
@@ -76,21 +76,27 @@ typedef struct
 
 tport_vtable_t const tport_http_connect_vtable =
 {
-  "TCP", tport_type_connect,
-  sizeof (tport_http_connect_t),
-  tport_http_connect_init_primary,
-  tport_http_connect_deinit_primary,
-  NULL,
-  tport_http_connect,
-  sizeof (tport_http_connect_instance_t),
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  tport_recv_stream,
-  tport_send_stream,
-  tport_http_deliver,
+  /* vtp_name               */ "TCP",
+  /* vtp_public              */ tport_type_connect,
+  /* vtp_pri_size            */ sizeof (tport_http_connect_t),
+  /* vtp_init_primary        */ tport_http_connect_init_primary,
+  /* vtp_deinit_primary      */ tport_http_connect_deinit_primary,
+  /* vtp_wakeup_pri          */ NULL,
+  /* vtp_connect             */ tport_http_connect,
+  /* vtp_secondary_size      */ sizeof (tport_http_connect_instance_t),
+  /* vtp_init_secondary      */ NULL,
+  /* vtp_deinit_secondary    */ NULL,
+  /* vtp_shutdown            */ NULL,
+  /* vtp_set_events          */ NULL,
+  /* vtp_wakeup              */ NULL,
+  /* vtp_recv                */ tport_recv_stream,
+  /* vtp_send                */ tport_send_stream,
+  /* vtp_deliver             */ tport_http_deliver,
+  /* vtp_prepare             */ NULL,
+  /* vtp_keepalive           */ NULL,
+  /* vtp_stun_response       */ NULL,
+  /* vtp_next_secondary_timer*/ NULL,
+  /* vtp_secondary_timer     */ NULL,
 };
 
 static int tport_http_connect_init_primary(tport_primary_t *pri,
index 014aa479fb999c6ad656eb10cdf643c12ad17e1e..08b160bb755af627e814fd92a5484052b32f1047 100644 (file)
@@ -102,50 +102,52 @@ static void tport_sctp_timer(tport_t *self, su_time_t);
 
 tport_vtable_t const tport_sctp_client_vtable =
 {
-  "sctp", tport_type_client,
-  sizeof (tport_primary_t),
-  tport_sctp_init_client,
-  NULL,
-  tport_accept,
-  NULL,
-  sizeof (tport_t),
-  tport_sctp_init_secondary,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  tport_recv_sctp,
-  tport_send_sctp,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  tport_sctp_next_timer,
-  tport_sctp_timer,
+  /* vtp_name               */ "sctp",
+  /* vtp_public              */ tport_type_client,
+  /* vtp_pri_size            */ sizeof (tport_primary_t),
+  /* vtp_init_primary        */ tport_sctp_init_client,
+  /* vtp_deinit_primary      */ NULL,
+  /* vtp_wakeup_pri          */ tport_accept,
+  /* vtp_connect             */ NULL,
+  /* vtp_secondary_size      */ sizeof (tport_t),
+  /* vtp_init_secondary      */ tport_sctp_init_secondary,
+  /* vtp_deinit_secondary    */ NULL,
+  /* vtp_shutdown            */ NULL,
+  /* vtp_set_events          */ NULL,
+  /* vtp_wakeup              */ NULL,
+  /* vtp_recv                */ tport_recv_sctp,
+  /* vtp_send                */ tport_send_sctp,
+  /* vtp_deliver             */ NULL,
+  /* vtp_prepare             */ NULL,
+  /* vtp_keepalive           */ NULL,
+  /* vtp_stun_response       */ NULL,
+  /* vtp_next_secondary_timer*/ tport_sctp_next_timer,
+  /* vtp_secondary_timer     */ tport_sctp_timer,
 };
 
 tport_vtable_t const tport_sctp_vtable =
 {
-  "sctp", tport_type_local,
-  sizeof (tport_primary_t),
-  tport_sctp_init_primary,
-  NULL,
-  tport_accept,
-  NULL,
-  sizeof (tport_t),
-  tport_sctp_init_secondary,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  tport_recv_sctp,
-  tport_send_sctp,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  tport_sctp_next_timer,
-  tport_sctp_timer,
+  /* vtp_name               */ "sctp",
+  /* vtp_public              */ tport_type_local,
+  /* vtp_pri_size            */ sizeof (tport_primary_t),
+  /* vtp_init_primary        */ tport_sctp_init_primary,
+  /* vtp_deinit_primary      */ NULL,
+  /* vtp_wakeup_pri          */ tport_accept,
+  /* vtp_connect             */ NULL,
+  /* vtp_secondary_size      */ sizeof (tport_t),
+  /* vtp_init_secondary      */ tport_sctp_init_secondary,
+  /* vtp_deinit_secondary    */ NULL,
+  /* vtp_shutdown            */ NULL,
+  /* vtp_set_events          */ NULL,
+  /* vtp_wakeup              */ NULL,
+  /* vtp_recv                */ tport_recv_sctp,
+  /* vtp_send                */ tport_send_sctp,
+  /* vtp_deliver             */ NULL,
+  /* vtp_prepare             */ NULL,
+  /* vtp_keepalive           */ NULL,
+  /* vtp_stun_response       */ NULL,
+  /* vtp_next_secondary_timer*/ tport_sctp_next_timer,
+  /* vtp_secondary_timer     */ tport_sctp_timer,
 };
 
 static int tport_sctp_init_primary(tport_primary_t *pri,
index 018c2b65087b6e45f638cdac209d4498ae1b7cd7..55f67a9e2c66e4e4042f9b6ec8ac251a4ba06eb2 100644 (file)
@@ -77,24 +77,27 @@ static int tport_stun_response(tport_t const *self,
 
 tport_vtable_t const tport_stun_vtable =
 {
-  "UDP", tport_type_stun,
-  sizeof (tport_primary_t),
-  tport_udp_init_stun,
-  tport_udp_deinit_stun,
-  NULL,
-  NULL,
-  sizeof (tport_t),
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  tport_recv_dgram,
-  tport_send_dgram,
-  NULL,
-  NULL,
-  tport_stun_keepalive,
-  tport_stun_response
+  /* vtp_name               */ "UDP",
+  /* vtp_public              */ tport_type_stun,
+  /* vtp_pri_size            */ sizeof (tport_primary_t),
+  /* vtp_init_primary        */ tport_udp_init_stun,
+  /* vtp_deinit_primary      */ tport_udp_deinit_stun,
+  /* vtp_wakeup_pri          */ NULL,
+  /* vtp_connect             */ NULL,
+  /* vtp_secondary_size      */ sizeof (tport_t),
+  /* vtp_init_secondary      */ NULL,
+  /* vtp_deinit_secondary    */ NULL,
+  /* vtp_shutdown            */ NULL,
+  /* vtp_set_events          */ NULL,
+  /* vtp_wakeup              */ NULL,
+  /* vtp_recv                */ tport_recv_dgram,
+  /* vtp_send                */ tport_send_dgram,
+  /* vtp_deliver             */ NULL,
+  /* vtp_prepare             */ NULL,
+  /* vtp_keepalive           */ tport_stun_keepalive,
+  /* vtp_stun_response       */ tport_stun_response,
+  /* vtp_next_secondary_timer*/ NULL,
+  /* vtp_secondary_timer     */ NULL,
 };
 
 static int tport_udp_init_stun(tport_primary_t *pri,
index ec87db586d9e2a772bee567acf68c5c430e4535e..138caf6960d0f732e4b3a127a325746ffd1c5d71 100644 (file)
@@ -63,50 +63,52 @@ static char const __func__[] = "tport_type_tcp";
 
 tport_vtable_t const tport_tcp_vtable =
 {
-  "tcp", tport_type_local,
-  sizeof (tport_primary_t),
-  tport_tcp_init_primary,
-  NULL,
-  tport_accept,
-  NULL,
-  sizeof (tport_t),
-  tport_tcp_init_secondary,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  tport_recv_stream,
-  tport_send_stream,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  tport_tcp_next_timer,
-  tport_tcp_timer,
+  /* vtp_name               */ "tcp",
+  /* vtp_public              */ tport_type_local,
+  /* vtp_pri_size            */ sizeof (tport_primary_t),
+  /* vtp_init_primary        */ tport_tcp_init_primary,
+  /* vtp_deinit_primary      */ NULL,
+  /* vtp_wakeup_pri          */ tport_accept,
+  /* vtp_connect             */ NULL,
+  /* vtp_secondary_size      */ sizeof (tport_t),
+  /* vtp_init_secondary      */ tport_tcp_init_secondary,
+  /* vtp_deinit_secondary    */ NULL,
+  /* vtp_shutdown            */ NULL,
+  /* vtp_set_events          */ NULL,
+  /* vtp_wakeup              */ NULL,
+  /* vtp_recv                */ tport_recv_stream,
+  /* vtp_send                */ tport_send_stream,
+  /* vtp_deliver             */ NULL,
+  /* vtp_prepare             */ NULL,
+  /* vtp_keepalive           */ NULL,
+  /* vtp_stun_response       */ NULL,
+  /* vtp_next_secondary_timer*/ tport_tcp_next_timer,
+  /* vtp_secondary_timer     */ tport_tcp_timer,
 };
 
 tport_vtable_t const tport_tcp_client_vtable =
 {
-  "tcp", tport_type_client,
-  sizeof (tport_primary_t),
-  tport_tcp_init_client,
-  NULL,
-  NULL,
-  NULL,
-  sizeof (tport_t),
-  tport_tcp_init_secondary,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  tport_recv_stream,
-  tport_send_stream,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  tport_tcp_next_timer,
-  tport_tcp_timer,
+  /* vtp_name               */ "tcp",
+  /* vtp_public              */ tport_type_client,
+  /* vtp_pri_size            */ sizeof (tport_primary_t),
+  /* vtp_init_primary        */ tport_tcp_init_client,
+  /* vtp_deinit_primary      */ NULL,
+  /* vtp_wakeup_pri          */ NULL,
+  /* vtp_connect             */ NULL,
+  /* vtp_secondary_size      */ sizeof (tport_t),
+  /* vtp_init_secondary      */ tport_tcp_init_secondary,
+  /* vtp_deinit_secondary    */ NULL,
+  /* vtp_shutdown            */ NULL,
+  /* vtp_set_events          */ NULL,
+  /* vtp_wakeup              */ NULL,
+  /* vtp_recv                */ tport_recv_stream,
+  /* vtp_send                */ tport_send_stream,
+  /* vtp_deliver             */ NULL,
+  /* vtp_prepare             */ NULL,
+  /* vtp_keepalive           */ NULL,
+  /* vtp_stun_response       */ NULL,
+  /* vtp_next_secondary_timer*/ tport_tcp_next_timer,
+  /* vtp_secondary_timer     */ tport_tcp_timer,
 };
 
 static int tport_tcp_setsndbuf(int socket, int atleast);
index 2f89d4baf4f62b85da96610d59f36140f2f927ba..8d0f2de712b64465c9d17f1b8f4cd90f3335cd2b 100644 (file)
@@ -69,38 +69,52 @@ static char const __func__[] = "tport_type_udp";
 
 tport_vtable_t const tport_udp_client_vtable =
 {
-  "udp", tport_type_client,
-  sizeof (tport_primary_t),
-  tport_udp_init_client,
-  NULL,
-  NULL,
-  NULL,
-  sizeof (tport_t),
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  tport_recv_dgram,
-  tport_send_dgram,
+  /* vtp_name               */ "udp",
+  /* vtp_public              */ tport_type_client,
+  /* vtp_pri_size            */ sizeof (tport_primary_t),
+  /* vtp_init_primary        */ tport_udp_init_client,
+  /* vtp_deinit_primary      */ NULL,
+  /* vtp_wakeup_pri          */ NULL,
+  /* vtp_connect             */ NULL,
+  /* vtp_secondary_size      */ sizeof (tport_t),
+  /* vtp_init_secondary      */ NULL,
+  /* vtp_deinit_secondary    */ NULL,
+  /* vtp_shutdown            */ NULL,
+  /* vtp_set_events          */ NULL,
+  /* vtp_wakeup              */ NULL,
+  /* vtp_recv                */ tport_recv_dgram,
+  /* vtp_send                */ tport_send_dgram,
+  /* vtp_deliver             */ NULL,
+  /* vtp_prepare             */ NULL,
+  /* vtp_keepalive           */ NULL,
+  /* vtp_stun_response       */ NULL,
+  /* vtp_next_secondary_timer*/ NULL,
+  /* vtp_secondary_timer     */ NULL,
 };
 
 tport_vtable_t const tport_udp_vtable =
 {
-  "udp", tport_type_local,
-  sizeof (tport_primary_t),
-  tport_udp_init_primary,
-  NULL,
-  NULL,
-  NULL,
-  sizeof (tport_t),
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  tport_recv_dgram,
-  tport_send_dgram,
+  /* vtp_name               */ "udp",
+  /* vtp_public              */ tport_type_local,
+  /* vtp_pri_size            */ sizeof (tport_primary_t),
+  /* vtp_init_primary        */ tport_udp_init_primary,
+  /* vtp_deinit_primary      */ NULL,
+  /* vtp_wakeup_pri          */ NULL,
+  /* vtp_connect             */ NULL,
+  /* vtp_secondary_size      */ sizeof (tport_t),
+  /* vtp_init_secondary      */ NULL,
+  /* vtp_deinit_secondary    */ NULL,
+  /* vtp_shutdown            */ NULL,
+  /* vtp_set_events          */ NULL,
+  /* vtp_wakeup              */ NULL,
+  /* vtp_recv                */ tport_recv_dgram,
+  /* vtp_send                */ tport_send_dgram,
+  /* vtp_deliver             */ NULL,
+  /* vtp_prepare             */ NULL,
+  /* vtp_keepalive           */ NULL,
+  /* vtp_stun_response       */ NULL,
+  /* vtp_next_secondary_timer*/ NULL,
+  /* vtp_secondary_timer     */ NULL,
 };
 
 static void tport_check_trunc(tport_t *tp, su_addrinfo_t *ai);