code in C. The performance difference is
> irrelevant because the scripts work, and your code does not work.
>
> If you ask me again why, then I will no longer be polite.
>
> Wietse
>
--
--
Gökhan ALKAN
ort 10026/tcp.
>
> Look in with a search engine for smtpprox. It speaks SMTP and does
> exactly what you need. You can add code to it as needed.
>
> smtpprox is written in Perl. I expect that similar code has been
> written in Python and so on. Don't try to do this in C.
send(sock_fd, buff, (sizeof(buff)-1), 0);
>
> What if send() reports an error?
>
> > }
>
> The above program loops forever in while(1).
>
> > shutdown(client_sock, SHUT_RDWR);
>
> What if shutdown() reports an error? At this point client_sock is -1
> because accept() reported an error. See above.
>
> > close(server_sock);
> > close(client_sock);
> > close(sock_fd);
>
> Wietse
>
--
--
Gökhan ALKAN
I try to develop poc code for postfix content filtering. All i need is read
the 10025/tcp and send all data which i can read to 10026/tcp. Below is my
poc code. But i try to send email it doesn't work and postfix show me "451
4.3.0 Error: queue file write error".
#include
#include
#include
#inc
I try to develop poc code for postfix content filtering. All i need is read
the 10025/tcp and send all data which i can read to 10026/tcp. Below is my
poc code. But i try to send email it doesn't work and postfix show me "451
4.3.0 Error: queue file write error".
#include
#include
#include
#inc