Commit ed9d542d authored by smorlat's avatar smorlat

work in progress



git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@240 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 8bc6a662
......@@ -368,6 +368,7 @@ static void start_prompt_reader(void){
static ortp_socket_t create_server_socket(int port){
ortp_socket_t server_sock;
char service[12];
int tmp,err;
/*setup the server socket */
struct addrinfo *ai=NULL;
struct addrinfo hints;
......@@ -381,6 +382,9 @@ static ortp_socket_t create_server_socket(int port){
exit(-1);
}
server_sock=socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
tmp=1;
err=setsockopt(server_sock,SOL_SOCKET,SO_REUSEADDR,(void*)&tmp,sizeof(tmp));
if (err<0) fprintf(stderr,"Error in setsockopt(): %s\n",getSocketError());
if (bind(server_sock,ai->ai_addr,ai->ai_addrlen)!=0){
fprintf(stderr,"Failed to bind command socket.");
exit(-1);
......
......@@ -121,7 +121,8 @@ const char *usage="mediastream --local <port> --remote <ip:port> --payload <payl
"[ --fmtp <fmtpline>]\n"
"[ --jitter <miliseconds>]\n"
"[ --width <pixels>]\n"
"[ --height <pixels> ]\n";
"[ --height <pixels> ]\n"
"[ --bitrate <bits per seconds>]\n";
static void run_media_streams(int localport, const char *remote_ip, int remoteport, int payload, const char *fmtp, int jitter, bool_t ec, int bitrate, MSVideoSize vs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment