Socket programming question
Hello All
I m new to linux and i m using socket programming to access data from one server to another server. both Client and server i have written in C i m sending some data to server. after some time i m getting below error. ERROR writing to socket: Bad address earlier my client use maximum 2MB memory and when i get this error on server my client usage may go up to 1GB i dont know wats wrong. Please help me |
You are not serious are you? This has to be a trick question.
Quote:
Quote:
What data? Quote:
As this makes no reference to a line number it leads me to believe (maybe wrongly but you have included no other detail) that this is an error catch you may have written into the code. If so, you should know what would cause such an issue. Quote:
In short, help us to help you. If you do not provide anything tangible for us to help with the question will fall by the way side as it is too hard to find solutions for you. |
Dear GURU,
Thanks for your reply here is the server code Code:
Code:
|
Well firstly, please go back to previous post and place inside [code][/code] tags to keep the formatting and make the code at least a little readable.
Secondly, you still need to help us to help you, a swath of code says that you have copied / written a lot of code. What debugging have you done? Have you placed print statements or other output modes to collect information surrounding the variables near where you make calls to sockets? The general idea here is that the effort you put in will be returned. |
Quote:
I'll go out on a limb and say (just from the error message), that the address is wrong/blocked, or the other side of the connection is somehow failing. Have you checked it? Firewall(s) in place? What's the network environment where you're running this? |
you might want to REMOVE THIS
Quote:
wow i hit the jackpot ! now i am a nice guy ... but if i was not ............................... |
All times are GMT -5. The time now is 11:05 PM. |