LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2006, 06:43 AM   #1
cynthia_thomas
LQ Newbie
 
Registered: Oct 2005
Posts: 28

Rep: Reputation: 15
ERROR reading from socket: Bad address


hi,

This is the error that i got when running a client server program

Server side:

ERROR reading from socket: Bad address

Client side:

[root@CORE-2-02 examples]# ./a.out CORE-2-02 2007

Number of packets in the buffer : 1
Number of packets in the buffer : 2
Number of packets in the buffer : 3
Number of packets in the buffer : 4
ERROR reading from socket: Connection reset by peer
Number of packets in the buffer : 5

please help me.


Thanks and regards
cynthia
 
Old 02-18-2006, 07:02 AM   #2
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
More info would be nice ;(
Is this tcp? if so the error "Connection reset by peer" would indicate the stream has been closed. Without more info this is all I can really say. What sort of response did you expect with this post?

RRR what you need to do is.....

This post is like saying "I was walking down the road the other day and someone shouted to me, what did they want?" lol

Last edited by dmail; 02-18-2006 at 07:09 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Socket error when spoofing source address David Knecht Linux - Networking 0 06-17-2005 05:54 AM
Socket error when spoofing source address David Knecht SUSE / openSUSE 0 06-15-2005 07:01 AM
Error 2: reading header: cpio: Bad magic sujitshah Linux - Software 1 03-20-2004 10:37 AM
Error 2 Reading Header: Cpio: Bad Magic rakoo Red Hat 2 03-12-2004 03:29 PM
Error 2 Reading Header: Cpio: Bad Magic rakoo Red Hat 0 03-10-2004 05:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration