skypiax: fixed problem with different storage between linux and windoz for tcp ports (int to unsigned short). Thanks Sergey for reporting
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14629 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
fad4fefc4a
commit
d9e1d18fb6
2 changed files with 12 additions and 1 deletions
|
@ -288,4 +288,8 @@ int remote_party_is_ringing(private_t * tech_pvt);
|
|||
int remote_party_is_early_media(private_t * tech_pvt);
|
||||
int skypiax_answer(private_t * tech_pvt, char *id, char *value);
|
||||
int skypiax_transfer(private_t * tech_pvt, char *id, char *value);
|
||||
#ifndef WIN32
|
||||
int skypiax_socket_create_and_bind(private_t * tech_pvt, int *which_port);
|
||||
#else
|
||||
int skypiax_socket_create_and_bind(private_t * tech_pvt, unsigned short *which_port);
|
||||
#endif //WIN32
|
|
@ -25,12 +25,19 @@ XErrorHandler old_handler = 0;
|
|||
int xerror = 0;
|
||||
#endif /* WIN32 */
|
||||
/*************************************/
|
||||
|
||||
#ifndef WIN32
|
||||
int skypiax_socket_create_and_bind(private_t * tech_pvt, int *which_port)
|
||||
#else
|
||||
int skypiax_socket_create_and_bind(private_t * tech_pvt, unsigned short *which_port)
|
||||
#endif //WIN32
|
||||
{
|
||||
int s = -1;
|
||||
struct sockaddr_in my_addr;
|
||||
#ifndef WIN32
|
||||
int start_port = 6001;
|
||||
#else
|
||||
unsigned short start_port = 6001;
|
||||
#endif //WIN32
|
||||
|
||||
memset(&my_addr, 0, sizeof(my_addr));
|
||||
my_addr.sin_family = AF_INET;
|
||||
|
|
Loading…
Reference in a new issue