Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no method to connect via ipv6 with options #67

Open
dwolaver opened this issue Aug 20, 2019 · 1 comment
Open

no method to connect via ipv6 with options #67

dwolaver opened this issue Aug 20, 2019 · 1 comment

Comments

@dwolaver
Copy link

this api doesn't exist.

@dwolaver
Copy link
Author

diff --git a/src/nopoll_conn.c b/src/nopoll_conn.c
index 9612df4..4070817 100644
--- a/src/nopoll_conn.c
+++ b/src/nopoll_conn.c
@@ -1388,6 +1388,22 @@ noPollConn * nopoll_conn_new_opts (noPollCtx * ctx,
get_url, protocols, origin);
}

+noPollConn * nopoll_conn_new_opts6 (noPollCtx * ctx,

  •           noPollConnOpts  * opts,
    
  •           const char      * host_ip,
    
  •           const char      * host_port,
    
  •           const char      * host_name,
    
  •           const char      * get_url,
    
  •           const char      * protocols,
    
  •           const char      * origin)
    

+{

  • /* call common implementation */
  • return __nopoll_conn_new_common (ctx, opts, NOPOLL_TRANSPORT_IPV6, nopoll_false,
  •            NOPOLL_INVALID_SOCKET,
    
  •            host_ip, host_port, host_name,
    
  •            get_url, protocols, origin);
    

+}
+
/**

  • @brief Creates a new Websocket connection using a socket
  • with a preestablished connection.
    diff --git a/src/nopoll_conn.h b/src/nopoll_conn.h
    index cb67356..91fafea 100644
    --- a/src/nopoll_conn.h
    +++ b/src/nopoll_conn.h
    @@ -68,6 +68,15 @@ noPollConn * nopoll_conn_new_opts (noPollCtx * ctx,
    const char * protocols,
    const char * origin);

+noPollConn * nopoll_conn_new_opts6 (noPollCtx * ctx,

  •           noPollConnOpts  * opts,
    
  •           const char      * host_ip,
    
  •           const char      * host_port,
    
  •           const char      * host_name,
    
  •           const char      * get_url,
    
  •           const char      * protocols,
    
  •           const char      * origin);
    

noPollConn * nopoll_conn_new_with_socket (noPollCtx * ctx,
noPollConnOpts * opts,
int socket,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant