[4159] in RedHat Linux List
Berkley Sockets ? Anyone code C ? I have a quick question...
daemon@ATHENA.MIT.EDU (Allen Francom)
Tue Nov 12 22:09:08 1996
Date: Wed, 13 Nov 1996 10:05:22 -0800 (PST)
From: Allen Francom <afrancom@numedics.transport.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
I have a custom pop-3 interface that opens sockets to the pop server.
It seems to be behaving strangely lately. I do all the standard lookup
host and service by name type stuff...
It is when I'm reading and writing strings, POP command like TOP, RETR,
etc., it used to work perfect, and now it is like fgets on the file I
opened with the socket is no longer synchronized or something.
It's like it returns without getting a value.
When you issue a POP command, you usually either get
+OK something
or
-ERR something
Normally the fgets would sit there and wait until a whole delineated line
comes through... Now it's like it is returning too soon with a junk
string, excuse me, char array.
Sometimes it even works a bit way into my inbox before failing.
Could I have a different kinda bug or might there be some sockets skill
I'm lacking ?
THX
-AEF
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null