This is my client code. when I send msg. it sends fine but and then gives me msg "segmentation fault core dumped" right after I send the msg. the result of Client connection is 0 .when it quits it says that I could not find what the problem is any idea?
Hey friend! Do you know how to use a debugger? This may be the perfect time to try it out! You should step through your code, and detect the exact line that is giving you an error, then focus on the variables and other things involved with that line =]
If you are using an IDE like code::blocks, it's as easy as pushing the debug option.
If you are using gcc or other command line compilers, you can use gdb! (google can help)