winlin

update readme

@@ -113,18 +113,18 @@ int SrsUdpListener::listen() @@ -113,18 +113,18 @@ int SrsUdpListener::listen()
113 113
114 if ((_fd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) { 114 if ((_fd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) {
115 ret = ERROR_SOCKET_CREATE; 115 ret = ERROR_SOCKET_CREATE;
116 - srs_error("create linux socket error. port=%d, ret=%d", ip.c_str(), port, ret); 116 + srs_error("create linux socket error. ip=%s, port=%d, ret=%d", ip.c_str(), port, ret);
117 return ret; 117 return ret;
118 } 118 }
119 - srs_verbose("create linux socket success. port=%d, fd=%d", ip.c_str(), port, _fd); 119 + srs_verbose("create linux socket success. ip=%s, port=%d, fd=%d", ip.c_str(), port, _fd);
120 120
121 int reuse_socket = 1; 121 int reuse_socket = 1;
122 if (setsockopt(_fd, SOL_SOCKET, SO_REUSEADDR, &reuse_socket, sizeof(int)) == -1) { 122 if (setsockopt(_fd, SOL_SOCKET, SO_REUSEADDR, &reuse_socket, sizeof(int)) == -1) {
123 ret = ERROR_SOCKET_SETREUSE; 123 ret = ERROR_SOCKET_SETREUSE;
124 - srs_error("setsockopt reuse-addr error. port=%d, ret=%d", ip.c_str(), port, ret); 124 + srs_error("setsockopt reuse-addr error. ip=%s, port=%d, ret=%d", ip.c_str(), port, ret);
125 return ret; 125 return ret;
126 } 126 }
127 - srs_verbose("setsockopt reuse-addr success. port=%d, fd=%d", ip.c_str(), port, _fd); 127 + srs_verbose("setsockopt reuse-addr success. ip=%s, port=%d, fd=%d", ip.c_str(), port, _fd);
128 128
129 sockaddr_in addr; 129 sockaddr_in addr;
130 addr.sin_family = AF_INET; 130 addr.sin_family = AF_INET;