agent->proxy_ip != NULL &&
nice_address_set_from_string (&proxy_server, agent->proxy_ip)) {
nice_address_set_port (&proxy_server, agent->proxy_port);
- nicesock = nice_tcp_bsd_socket_new (agent->main_context, &proxy_server,
- &local_address, reliable_tcp);
+ nicesock = nice_tcp_bsd_socket_new (agent->main_context, &local_address,
+ &proxy_server, reliable_tcp);
if (nicesock) {
_priv_set_socket_tos (agent, nicesock, stream->tos);
}
if (nicesock == NULL) {
- nicesock = nice_tcp_bsd_socket_new (agent->main_context, &turn->server,
- &local_address, reliable_tcp);
+ nicesock = nice_tcp_bsd_socket_new (agent->main_context, &local_address,
+ &turn->server, reliable_tcp);
if (nicesock)
_priv_set_socket_tos (agent, nicesock, stream->tos);
}
NiceSocket *
-nice_tcp_bsd_socket_new (GMainContext *ctx, NiceAddress *remote_addr,
- NiceAddress *local_addr, gboolean reliable)
+nice_tcp_bsd_socket_new (GMainContext *ctx, NiceAddress *local_addr,
+ NiceAddress *remote_addr, gboolean reliable)
{
union {
struct sockaddr_storage storage;
NiceSocket *
nice_tcp_bsd_socket_new_from_gsock (GMainContext *ctx, GSocket *gsock,
- NiceAddress *local_addr, NiceAddress *remote_addr, gboolean reliable);
+ NiceAddress *remote_addr, NiceAddress *local_addr, gboolean reliable);
G_END_DECLS