Przemyslaw,
> Why do you need to receive pending data in such situation?
>
>> hb_InetClose() does an automatic shutdown, I saw it, but I think that a
>> following hb_InetRecv() on a closed socket will give me an error.
>
I think rfc959 requires this kind of behaviour (or at least I've inferred i
On Tue, 16 Feb 2010, Maurilio Longo wrote:
Hi,
> I'm writing a ftpd server, when a transfer is happening and, for example, I
> have an error writing data to disk I have to stop incoming data and notify
> client that the transfer has been aborted.
>
> Looking around I've seen that one solution is
Przemyslaw,
I'm writing a ftpd server, when a transfer is happening and, for example, I
have an error writing data to disk I have to stop incoming data and notify
client that the transfer has been aborted.
Looking around I've seen that one solution is to shutdown() the socket and
receive pending
On Tue, 16 Feb 2010, Maurilio Longo wrote:
Hi Maurilio,
> I'd like to add this code to hbinet.c
> HB_FUNC( HB_INETSHUTDOWN )
> {
>PHB_SOCKET_STRUCT socket = HB_PARSOCKET( 1 );
>if( socket )
>{
> if( socket->sd != HB_NO_SOCKET )
> {
> hb_retni( hb_socketShutdown( s