I want to make a simple chat program after I got my first winsock program to work. The thing with chat is that the receiving part seems to work simultaneously with the sending part, but the thing is `recv()` seems to hold until it receives something(like any stdin function, I suppose) and so during that time I can't call any stdin function to do the sending part. Taking turns seem odd.
Assuming I could get them to connect and without a sort of main server, how could I perform both receiving and sending(or at least input). A common server is set for a later endeavor.
I also figure I could do this on GTK+, but I'm using VS since C::B is a pain with winsock and auto-completion is broken. Also, its a good opportunity to learn some console formatting.(the mingw installation had this cool thing where it can update only a given length in the console instead of reprinting everything.)