sanjeev kumar
unread,Sep 19, 2011, 9:03:04 AM9/19/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mordor Users
Hello,
I am trying the echoserver example.
When I execute the example It says address already in use.
$ netstat -na | grep LISTEN | grep 43001
LOG_STDOUT=1 LOG_TRACEMASK='mordor:http:server' ./MorderHTTPServer
2011-Sep-19 12:46:00.320811 967 INFO 12685 0x25169b0 mordor:daemon
mordor/daemon.cpp:393 Starting daemon
2011-Sep-19 12:46:00.321417 1575 ERROR 12685 0x25169b0 mordor:socket
mordor/socket.cpp:334 0x251a040 bind(7, [::1]:43001): (98, "Address
already in use")
2011-Sep-19 12:46:00.321614 1772 INFO 12685 0x25169b0 mordor:socket
mordor/socket.cpp:323 0x251a040 close(7)
Why does it says address already in use. The above netstat shows port
43001 NOT in use.
Now when I again issue I see it
$ netstat -na | grep LISTEN | grep 43001
tcp 0 0 ::
1:43001 :::* LISTEN
the startSocketServer method
void startSocketServer(IOManager &ioManager)
{
std::vector<Address::ptr> addresses = Address::lookup("localhost:
43001");
.....
}
Also the method startHttpServer is not invoked ?
void startHttpServer(IOManager &ioManager)
{
std::vector<Address::ptr> addresses = Address::lookup("localhost:
43009", AF_UNSPEC, SOCK_STREAM);
.....
...
}
}
Please could you provide some input.It is not not clear how it is
working.
Kind Regards
Sanjeev