cleaup of the TCP/TLS socket API:
authorKevin P. Fleming <kpfleming@digium.com>
Sun, 19 Oct 2008 19:11:28 +0000 (19:11 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Sun, 19 Oct 2008 19:11:28 +0000 (19:11 +0000)
commit1ddc834b3977cd72de829c5130e0ebec8de23204
treebea89853faca5cdbd5de5c469f8726139ecd610b
parent6f860c262d4d69b1659d9d799e9948bffcb69938
cleaup of the TCP/TLS socket API:

1) rename 'struct server_args' to 'struct ast_tcptls_session_args', to follow coding guidelines

2) make ast_make_file_from_fd() static and rename it to something that indicates what it really is for (again coding guidelines)

3) rename address variables inside 'struct ast_tcptls_session_args' to be more descriptive (dare i say it... coding guidelines)

4) change ast_tcptls_client_start() to use the new 'remote_address' field of the session args for the destination of the connection, and use the 'local_address' field to bind() the socket to the proper source address, if one is supplied

5) in chan_sip, ensure that we pass in the PP address we are bound to when creating outbound (client) connections, so that our connections will appear from the correct address

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@151101 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_externalivr.c
channels/chan_sip.c
include/asterisk/tcptls.h
main/http.c
main/manager.c
main/tcptls.c