Ben Bacarisse
6/22/2011 4:55:00 PM
BGB <cr88192@hotmail.com> writes:
> On 6/22/2011 9:17 AM, Keith Thompson wrote:
>> BGB<cr88192@hotmail.com> writes:
>>> On 6/22/2011 6:38 AM, Steve Richter wrote:
>>>> On Jun 22, 9:32 am, Noob<r...@127.0.0.1> wrote:
>>>>> Steve Richter wrote:
>>>>>> when a client reads from a socket, how does it know the server has
>>>>>> completed sending and is itself currently blocking on a read from the
>>>>>> client?
>>>>>
>>>>>> I am writing a small ftp client in C for the IBM AS400 using the UNIX
>>>>>> APIs.
>>>>>
>>>>> This is the wrong newsgroup. comp.unix.programmer is the group you want.
>>>>>
>>>> ok. reposted on comp.unix.programmer
>>>
>>> yep... because for who knows what reason, the people here generally
>>> exclude/reject anything not related to the C standard, and most topics
>>> related to actually using the language (which necessarily either involve
>>> OS-specific details, or other details not directly revolving around the
>>> C standard...).
>>>
>>> in a way it is silly/stupid, but whatever...
>>
>> The question really is Unix-specific. comp.unix.programmer is an
>> active newsgroup, full of experts who know more about sockets than,
>> for example, I do. Steve will get *better answers* there than he
>> would here.
>>
>> Why would you want him to post here instead?
>>
>
> well, one can also post on other groups...
> but, simply being like "OT here, go post over there" is not very
> helpful, especially for something trivial, where someone could have
> just responded:
> "ok, go look up 'fcntl()' and O_NONBLOCK" or "ioctl() and FIONBIO" or
> similar, which would presumably have been more helpful answers, and is
> reasonably portable (which works on POSIX systems, and is "reasonably
> similar" for Winsock, just with "ioctlsocket()" instead of "ioctl()",
> ...).
That does not answer the OP's question. Are you sure someone here would
know how to correct that reply? It's much more likely that such a
correction would happen in comp.unix.programmer.
> so, really, there is no reason to redirect, and a general answer could
> have been given which would have extended to the vast majority of
> existing operating systems...
>
> it is about like redirecting someone to a different group for the
> difference between '\\' and '/' as a path separator. it is silly and
> pointless...
>
> better is to try to give helpful responses, rather than having the
> default answer be "OT here, go ask somewhere else...".
Some answers might lead the OP astray. Almost by definition, the OP
does not know what the right answer is and a wrong one that goes
uncorrected might lead to all sorts of unnecessary convolutions in the
code.
> or such...
Eh?
--
Ben.