Implement internal abstraction for iostreams
fopencookie/funclose is a non-standard API and should not be used in portable software. Additionally, the way FILE's fd is used in non-blocking mode is undefined behaviour and cannot be relied on. This introduces internal abstraction for io streams, that allows implementing the desired virtualization of read/write operations with necessary timeout handling. ASTERISK-24515 #close ASTERISK-24517 #close Change-Id: Id916aef418b665ced6a7489aef74908b6e376e85
Showing
- apps/app_externalivr.c 54 additions, 65 deletionsapps/app_externalivr.c
- channels/chan_sip.c 24 additions, 37 deletionschannels/chan_sip.c
- configure.ac 0 additions, 4 deletionsconfigure.ac
- include/asterisk/iostream.h 118 additions, 0 deletionsinclude/asterisk/iostream.h
- include/asterisk/tcptls.h 3 additions, 89 deletionsinclude/asterisk/tcptls.h
- main/http.c 37 additions, 68 deletionsmain/http.c
- main/iostream.c 553 additions, 0 deletionsmain/iostream.c
- main/manager.c 58 additions, 84 deletionsmain/manager.c
- main/tcptls.c 91 additions, 620 deletionsmain/tcptls.c
- main/utils.c 0 additions, 62 deletionsmain/utils.c
- res/res_http_post.c 5 additions, 5 deletionsres/res_http_post.c
- res/res_http_websocket.c 53 additions, 63 deletionsres/res_http_websocket.c
- res/res_phoneprov.c 1 addition, 1 deletionres/res_phoneprov.c
Loading
Please register or sign in to comment