Type: Posts; User: keenlearner
Search took 0.01 seconds.
March 13th, 2013, 04:36 AM
Finally it works, I wasn't quite understand on the winsock functions, flow, etc. This is the working one. The key is to let the listener socket keep alive, then store the client/accepted socket in...
March 13th, 2013, 01:17 AM
Hi I am trying to write a server winsock in C++ to allow connection from PHP client code. The PHP will request the data from server, receive then close the connection. However, after 2-3 times of...
December 18th, 2010, 01:19 AM
StringBuilder first = new StringBuilder();
StringBuilder second = first;
String str = "Love";
Is there a way to check if the variable second is Type Reference, whereas the variable "str" is...
March 19th, 2008, 10:03 AM
Thanks everyone, I found that I think I would be using GTK+ and for C++ is gtkmm for me to create GUI.
March 18th, 2008, 08:30 PM
Hello, I have had been using linux for a few months. I need to do a school project, I want it to have the Windows based Interface because my lecturer would going to run in Windows only, not linux....
August 3rd, 2007, 11:52 AM
lol found more information in Wikipedia, in case if anyone like to know what is those three weird characters that I just knew as well. This is the three weird characters I saw "", exactly in what...
August 3rd, 2007, 11:37 AM
So C programming is standardize by ANSI ?! Have heard of this very often, but never really put an emphasize on it, now I realize how important to follow the standard. lol
August 3rd, 2007, 11:29 AM
Yeah, thanks, lol, it gives weird character only in UTF-8 encoding, I am so eager to know why is it so ? But never realized that I had saved the file as UTF-8 encoding. Thanks.
August 3rd, 2007, 11:17 AM
Yeah, it's around three weird characters printed out, now I delete both the .html and .txt and I go to my project file and recreate both file with following steps, then it works fine with my...
August 3rd, 2007, 11:07 AM
I had tried that, at first it gives me the same problem also, then I tried my own code again, but sometimes .html prints out well when I recreate the .html file
August 3rd, 2007, 10:56 AM
I am using Visual Studio 2005 Professional edition by MSDNAA, now it's getting more weird, event the .txt extension giving me the same problem. Thanks for the reply.
August 3rd, 2007, 10:43 AM
So if my file all are .html extension, I have to modified the file extension to .txt ? Thanks
August 3rd, 2007, 10:41 AM
When I used binary as Tavo method, it still printing weird characters, even when I have one character "a" inside the htmlfile.html.
August 3rd, 2007, 10:36 AM
Thanks, for the reply, but Mitsukai, can you clarify a little bit more clear ? You mean when I open file using ifstream, it's a text mode by default ? so I have to use binary ? Thanks.
August 3rd, 2007, 10:29 AM
When I open htmlfile.html file i got a few weird characters printed out which preceding the content inside the htmlfile.html file. But when I have the same file content with .txt extension, it has...
July 28th, 2007, 02:35 AM
He needs to support multiple clients, so I assume that he like to built the server application. Even if it's a client application, after reading the link and understand how IOCP work, we will be able...
July 27th, 2007, 04:51 PM
Thanks, you are right, because of the hash_function, it makes my hash_set list unordered. Got to use the std::map then. Thanks.
July 27th, 2007, 04:14 PM
You might one to consider the IO completion port of Winsock strategy, it's the most efficient IO strategy that I have seen so far, it can receive many clients connection and perform IO operations...
July 27th, 2007, 04:08 PM
I wish I could help, not very familiar with POST method. But maybe this could help a little bit
July 27th, 2007, 03:47 PM
Why is your host header field is "MyFirm" instead of "localhost" ?
July 27th, 2007, 03:38 PM
Hi I am using Winsock overlapped IOCP, I got one issues about WSABUF structure, when I have the buffer that I am going to use for WSASend(), the wsabuf.len should be filled as strlen(buf) or...
July 27th, 2007, 12:55 PM
I have test out with
July 27th, 2007, 12:40 PM
Thanks, to both of you, that is such a careless mistake. But I thought the compiler should complain since the first line of
July 27th, 2007, 11:00 AM
Hello, I got compile error as stated in the comment line below using Visual C++, what's wrong with that cout ?
And I got one more issue to ask, about strcmp (not used below), what does it compare...
July 26th, 2007, 01:49 PM
Thanks, I prefer to use C++ string too, it's less error prone, but I still have not idea why does many C++ source that I read, manyt of them still using C-style string, I only thought of one reason...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!