sockets - Writing a console-based C++ IRC-client -
i'm learning c++ , i've decided begin coding irc-client.
i want consolebased, , i've looked in libraries such ncurses, don't know whether or not best approach.
i imagine ui being divided 1 part whatever messages written appear, , 1 part users input goes. ncurses seemed able this, i've discovered issue.
because want message-part event driven (whenever sends message, should appear in message-part) message-part of ui should run independently input-part. also, sockets have non-blocking well.
i've looked around on internet , haven't found tutorials on this, either really, old, poorly written or long.
anyways, questions are, how done using ncurses , socket libraries? c++ wrappers (one thing i've learned reading ncurses tutorials oop wonderful...)?
using ncurses interface sounds idea. can single-threaded select-based network , terminal client -- check out beej's guide. alternatively, boost.asio, single-or-multithreaded, should solid choice, too.
Comments
Post a Comment