TCP packets never arrive in a different order. UDP ones do!
Type: Posts; User: cookie
TCP packets never arrive in a different order. UDP ones do!
Thanks. I knew about sleep(); So that actually reduces the CPU cycles. I makes the program wait a few seconds. I get it.
THANKS. I still have some problems where the messages you send to the...
Thanks. That explains why it used to work at the beginning when i had the array up to 128. I will try and see if it works. How can I make it use less of the CPU?
THANK YOU!
thanks. Now people know what I was talking about. I suspect it is from the fork(), not the sockets! Thank you very very much. Still hoping I can get this worked out(with your<<all of you>> of course)
Well. It keeps writing "Message from serv" or "Message to serv" even after the actual message has been printed. It is hard to explain or show because there things you need to see by running the...
Hey. I know I should do some typecasting there, but it's not a big issue RIGHT NOW. I've done few programs that involved sockets and they work just fine(with a warning at compile-time). I will fix it...
Hello guys. It's me again. With that stupid Encrypted Chat System. I thought I fixed it, but no, I didn't.
It just keep repeating the stuff in child process. Even if there is no message on the...
Yes. Thank You! Now, all I have trouble with is the prompt to send a new message to the server. I gotta find a way to fix it. If I have any major trouble. I will ask for help in this thread! It's...
Thanks. I just did if(recv(clisock, &buff, sizeof(buff), 0) != 0 && recv(clisock, &buff, sizeof(buff), 0) != 0)
Thank you very much salem.
I knew recv() would wait until it a message was available on a socket. That's why i was gonna check the string instead of the recv.
Hey guys. I figured out a way to organize the UI for the ECS program I am working on. After I recv() the message from the socket into buff, I could check if it received any message(if the buffer is...
Hey guys. Long time no see. I was off the boards for about a year now. I hope I made some progress since last year(concerning C programming).
I wanted to write an Encrypted Chat System(p2p) and I...
Mac, I was glined trying to remove my ban! Some guy named IRCop came on to my channel and told me to wrote a command on #gamesurge to remove my ban! Guess what! I was stupid enough to believe it and...
SERVER
irc.gamesurge.net
CHANNEL
#C-help
READ MY SIGNATURE!
The brackets separate the rest of the code from the for loop code! If you have only one line of code for the for loop, you do not need to put brackets! However, I think you are required to have them...
I created a collection of programs into I want to incorporat all my programs! I will run the program and select wich program I want to run! How exactly do i do that? Would it work if I would do a...
But what they do, they expect people to know what to do from their one program!
For example, if you have the second edition of The C Programming Language book go to section 1,9 They make a program...
I can understand it now! Functions really aren't hard! But Call by value and character arrays are!
What is this call by value, what do they mean it stores memory in an imaginary value!
I understand it all with the prototypes and functions but one more thing remains!
in the function:
int mult (int one, int two)
{
return one * two;
}
So I define the prorotype:
int add(int x, int y);
this has to be before main! Why do I have to put this too! int add(int, int) why don't I just leave it with the prototype???
Now another...
I've just learned about functions and I learned that you can put a prototype before the main function and it has to have the ; semicolons and the compiler will not give error!
But I also think...
I am learning arrays right now and I am being troubled! I understand that they are like more variables into one! If I am wrong, please, please, correct me!
so instead of doing:
int no1
int no2...
What is the difference betwwen mine and yours? Can you pls highlight what u changed?
I fixed the problem where it didn't want to count the words but got into another where it gives me off results at letters! It counts characters, blanks, tabs, lines and all the others right but it...
I also tried to understand it! But since I am a very beggining person, I could not understand much of it! One day passed, I wrote no code! I felt like I forgot anything I learned up to that point so...