- Timestamp:
- Mar 23, 2007 12:42:47 AM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/build/pjmedia.dsp
r895 r1097 42 42 # PROP Target_Dir "" 43 43 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c 44 # ADD CPP /nologo /MD /W4 /GX /Zi /O2 /I "../include" /I "../../pjlib/include" /I "../../pjlib-util/include" /I "../src/pjmedia/portaudio" /I "../src/pjmedia-codec" / D "NDEBUG" /D "PA_NO_ASIO" /D "WIN32" /D "_MBCS" /D "_LIB" /D PJ_WIN32=1 /D PJ_M_I386=1 /FR /FD /c44 # ADD CPP /nologo /MD /W4 /GX /Zi /O2 /I "../include" /I "../../pjlib/include" /I "../../pjlib-util/include" /I "../src/pjmedia/portaudio" /I "../src/pjmedia-codec" /I "../../pjnath/include" /D "NDEBUG" /D "PA_NO_ASIO" /D "WIN32" /D "_MBCS" /D "_LIB" /D PJ_WIN32=1 /D PJ_M_I386=1 /FR /FD /c 45 45 # SUBTRACT CPP /YX 46 46 # ADD BASE RSC /l 0x409 /d "NDEBUG" … … 66 66 # PROP Target_Dir "" 67 67 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c 68 # ADD CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /I "../include" /I "../../pjlib/include" /I "../../pjlib-util/include" /I "../src/pjmedia/portaudio" /I "../src/pjmedia-codec" / D "_DEBUG" /D "PA_NO_ASIO" /D "WIN32" /D "_MBCS" /D "_LIB" /D PJ_WIN32=1 /D PJ_M_I386=1 /FR /FD /GZ /c68 # ADD CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /I "../include" /I "../../pjlib/include" /I "../../pjlib-util/include" /I "../src/pjmedia/portaudio" /I "../src/pjmedia-codec" /I "../../pjnath/include" /D "_DEBUG" /D "PA_NO_ASIO" /D "WIN32" /D "_MBCS" /D "_LIB" /D PJ_WIN32=1 /D PJ_M_I386=1 /FR /FD /GZ /c 69 69 # SUBTRACT CPP /YX 70 70 # ADD BASE RSC /l 0x409 /d "_DEBUG" … … 245 245 # Begin Source File 246 246 247 SOURCE=..\src\pjmedia\transport_ice.c 248 # End Source File 249 # Begin Source File 250 247 251 SOURCE=..\src\pjmedia\transport_udp.c 248 252 # End Source File … … 398 402 399 403 SOURCE=..\include\pjmedia\transport.h 404 # End Source File 405 # Begin Source File 406 407 SOURCE=..\include\pjmedia\transport_ice.h 400 408 # End Source File 401 409 # Begin Source File -
pjproject/trunk/pjmedia/include/pjmedia/transport.h
r974 r1097 27 27 28 28 #include <pjmedia/types.h> 29 #include <pjmedia/errno.h> 29 30 30 31 /** … … 178 179 struct pjmedia_transport_op 179 180 { 181 pj_status_t (*get_info)(pjmedia_transport *tp, 182 pjmedia_sock_info *info); 183 180 184 /** 181 185 * This function is called by the stream when the transport is about … … 266 270 267 271 272 PJ_INLINE(pj_status_t) pjmedia_transport_get_info(pjmedia_transport *tp, 273 pjmedia_sock_info *info) 274 { 275 if (tp->op->get_info) 276 return (*tp->op->get_info)(tp, info); 277 else 278 return PJ_ENOTSUP; 279 } 280 268 281 269 282 /** -
pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c
r974 r1097 94 94 pj_ssize_t bytes_read); 95 95 96 static pj_status_t transport_get_info(pjmedia_transport *tp, 97 pjmedia_sock_info *info); 96 98 static pj_status_t transport_attach( pjmedia_transport *tp, 97 99 void *user_data, … … 117 119 static pjmedia_transport_op transport_udp_op = 118 120 { 121 &transport_get_info, 119 122 &transport_attach, 120 123 &transport_detach, … … 325 328 pjmedia_transport_udp_info *inf) 326 329 { 327 struct transport_udp *udp = (struct transport_udp*)tp; 328 PJ_ASSERT_RETURN(tp && inf, PJ_EINVAL); 329 330 inf->skinfo.rtp_sock = udp->rtp_sock; 331 inf->skinfo.rtp_addr_name = udp->rtp_addr_name; 332 inf->skinfo.rtcp_sock = udp->rtcp_sock; 333 inf->skinfo.rtcp_addr_name = udp->rtcp_addr_name; 334 335 return PJ_SUCCESS; 330 return transport_get_info(tp, &inf->skinfo); 336 331 } 337 332 … … 528 523 529 524 525 /* Called to get the transport info */ 526 static pj_status_t transport_get_info(pjmedia_transport *tp, 527 pjmedia_sock_info *info) 528 { 529 struct transport_udp *udp = (struct transport_udp*)tp; 530 PJ_ASSERT_RETURN(tp && info, PJ_EINVAL); 531 532 info->rtp_sock = udp->rtp_sock; 533 info->rtp_addr_name = udp->rtp_addr_name; 534 info->rtcp_sock = udp->rtcp_sock; 535 info->rtcp_addr_name = udp->rtcp_addr_name; 536 537 return PJ_SUCCESS; 538 } 539 540 530 541 /* Called by application to initialize the transport */ 531 542 static pj_status_t transport_attach( pjmedia_transport *tp, -
pjproject/trunk/pjnath/include/pjnath/errno.h
r1096 r1097 164 164 */ 165 165 #define PJ_ENOICE -1 166 167 /** 166 /** 168 167 * @hideinitializer 169 168 * ICE check is in progress 170 169 */ 171 170 #define PJ_EICEINPROGRESS -1 171 /** 172 * @hideinitializer 173 * Missing ICE SDP attribute 174 */ 175 #define PJ_EICEMISSINGSDP -1 176 /** 177 * @hideinitializer 178 * Invalid SDP "candidate" attribute 179 */ 180 #define PJ_EICEINCANDSDP -1 172 181 173 182 -
pjproject/trunk/pjnath/src/pjnath/ice.c
r1096 r1097 26 26 #include <pj/os.h> 27 27 #include <pj/pool.h> 28 #include <pj/rand.h> 28 29 #include <pj/string.h> 29 30 -
pjproject/trunk/pjproject.dsw
r960 r1097 85 85 ############################################################################### 86 86 87 Project: "pjnath"=.\pjnath\build\pjnath.dsp - Package Owner=<4> 88 89 Package=<5> 90 {{{ 91 }}} 92 93 Package=<4> 94 {{{ 95 }}} 96 97 ############################################################################### 98 87 99 Project: "pjsip_core"=.\pjsip\build\pjsip_core.dsp - Package Owner=<4> 88 100 … … 153 165 Project_Dep_Name pjsua_lib 154 166 End Project Dependency 167 Begin Project Dependency 168 Project_Dep_Name pjnath 169 End Project Dependency 155 170 }}} 156 171
Note: See TracChangeset
for help on using the changeset viewer.