|
Home > Archive > Unix Programming > July 2004 > Connection reset by peer using gcc.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Connection reset by peer using gcc.
|
|
| Hon Seng Phuah 2004-07-20, 2:52 am |
| Hi all,
My socket works perfectly until I added some send and receive
statements in my code. If I compile my server socket program using
gcc, it fails to work. My client program reports, "connection reset by
peer". If I am using HP-UX cc compiler, it works fine (no changes in
my client or server code). Does anyone know what I had done wrong?
-HS
| |
| Joe Chung 2004-07-20, 2:52 am |
| hsphuah@usa.com (Hon Seng Phuah) writes:
> Hi all,
>
> My socket works perfectly until I added some send and receive
> statements in my code. If I compile my server socket program using
> gcc, it fails to work. My client program reports, "connection reset by
> peer". If I am using HP-UX cc compiler, it works fine (no changes in
> my client or server code). Does anyone know what I had done wrong?
>
> -HS
A shot in the dark: add -D_HPUX_SOURCE to your compile flag when
invoking gcc.
-jc
--
(apply 'concat (reverse (list "com"
(char-to-string 46) "yahoo"
(char-to-string 64) "joechung")))
|
|
|
|
|