1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

get peer ip and add rtmp class

This commit is contained in:
winlin 2013-10-18 20:15:05 +08:00
parent 96e1de255c
commit d4b6178f0f
11 changed files with 178 additions and 34 deletions

View file

@ -25,8 +25,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <srs_core_error.hpp>
#include <srs_core_server.hpp>
#include <unistd.h>
int main(int /*argc*/, char** /*argv*/){
int ret = ERROR_SUCCESS;
@ -36,7 +34,7 @@ int main(int /*argc*/, char** /*argv*/){
return ret;
}
if ((ret = server.start(19350)) != ERROR_SUCCESS) {
if ((ret = server.listen(19350)) != ERROR_SUCCESS) {
return ret;
}