Groups | Search | Server Info | Login | Register


Groups > comp.os.os2.programmer.porting > #72

Re: SHUT_RDWR

From Dave Yeo <dave.r.yeo@gmail.com>
Newsgroups comp.os.os2.programmer.porting
Subject Re: SHUT_RDWR
Date 2011-06-18 10:46 -0700
Organization Aioe.org NNTP Server
Message-ID <itioa8$lnn$1@speranza.aioe.org> (permalink)
References <itc1a1$6gd$3@speranza.aioe.org> <3538cbf2-1215-498d-9e95-025aa88603dc@s9g2000yqm.googlegroups.com> <4dfb2213$0$11099$c3e8da3@news.astraweb.com>

Show all headers | View raw


Paul Smedley wrote:
> Hi Guys,
>
> On 06/16/2011 10:00 PM, Mentore wrote:
>> On 16 Giu, 06:37, Dave Yeo<dave.r....@gmail.com> wrote:
>>> Anyone have a compatible define for SHUT_RDWR? Closes a full duplex
>>> connection on a socket. Used like
>>> if (sess->fd != -1) {
>>> shutdown(sess->fd, SHUT_RDWR);
>>> close(sess->fd);
>>> sess->fd = -1;
>>>
>>> Dave
>>
>> Hello Dave,
>>
>> searching around I found some interesting links:
>>
>> http://www.freepascal.org/docs-html/rtl/sockets/shut_rdwr.html
>>
>> More important:
>>
>> http://tomoyo.sourceforge.jp/cgi-bin/lxr/ident?i=SHUT_RDWR
>>
>> Needless to say, I never ran around this definition... So I don't even
>> know if my reply will come useful to you.
>
> I've used the above and it works ok...
>
> Cheers,
>
> Paul

Did you use the whole macro? I simply defined it as 2. I was wondering 
if there were any drawbacks to doing so kinda like how on OS/2 a must be 
closed before deleting.
Dave

Back to comp.os.os2.programmer.porting | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

SHUT_RDWR Dave Yeo <dave.r.yeo@gmail.com> - 2011-06-15 21:37 -0700
  Re: SHUT_RDWR Mentore <mentore.siesto@libero.it> - 2011-06-16 05:30 -0700
    Re: SHUT_RDWR Paul Smedley <paulDESPAM@DESPAMMsmedley.id.au> - 2011-06-17 19:14 +0930
      Re: SHUT_RDWR Dave Yeo <dave.r.yeo@gmail.com> - 2011-06-18 10:46 -0700
  Re: SHUT_RDWR KO Myung-Hun <komh@chollian.net> - 2011-06-19 19:56 +0900
    Re: SHUT_RDWR KO Myung-Hun <komh@chollian.net> - 2011-06-19 20:14 +0900
      Re: SHUT_RDWR Dave Yeo <dave.r.yeo@gmail.com> - 2011-06-19 11:25 -0700

csiph-web