#include "DisplaySocket.h" #include using namespace::std; int main(int argc, char *argv[]) { SocketHandler h; DisplaySocket *p = new DisplaySocket(h); p -> SetDeleteByHandler(); p -> Open(argv[1], argv[2]); h.Add(p); h.Select(1,0); while (h.GetCount()) { h.Select(1,0); } } ############# dos.cpp: In function `int main(int, char**)': dos.cpp:11: error: invalid conversion from `char*' to `port_t' dos.cpp:11: error: initializing argument 2 of `bool TcpSocket::Open(const std::string&, port_t)'