eidheim / Simple-WebSocket-Server

A very simple, fast, multithreaded, platform independent WebSocket (WS) and WebSocket Secure (WSS) server and client library implemented using C++11, Boost.Asio and OpenSSL. Created to be an easy way to make WebSocket endpoints in C++.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installed but ws_examples throws an error

csuarezgfx opened this issue · comments

I ran: ./ws_examples
and got this error

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::system::system_error >'
what(): bind: Address already in use
Aborted (core dumped)

How can I check what the bind address is and what is already using it?

Thanks in advance

lsof -i :8080

returns:

*COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ws_exampl 17972 csuarez 6u IPv4 453224 0t0 TCP :http-alt (LISTEN)
ws_exampl 17972 csuarez 10u IPv4 454780 0t0 TCP localhost:43006->localhost:http-alt (CLOSE_WAIT)

The html_example was refused the connection but now it is working all on its own. Please disregard the issue