home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.protocols.tcp-ip:5143 comp.os.os2.networking:2115 comp.os.os2.programmer:6372
- Newsgroups: comp.protocols.tcp-ip,comp.os.os2.networking,comp.os.os2.programmer
- Path: sparky!uunet!mcsun!sunic!ugle.unit.no!alf.uib.no!hsr.no!fics!kro
- From: kro@kvamdata.no (Knut Rogde)
- Subject: TCP_NODELAY after accept()
- Organization: Kvam data as
- Date: Thu, 12 Nov 1992 15:39:29 GMT
- Message-ID: <1992Nov12.153929.18280@kvamdata.no>
- Lines: 33
-
- Hi,
-
- In the process of developing a client server concept based on TCP/IP,
- I've come across a problem:
-
- I need to set the TCP_NODELAY option (like the X window system does) in
- order to get fast query-response.
-
- I've managed to set this option on the caller side just after making the
- socket() call, but I can't make this work on the callee side.
-
- Whent I try to do
-
- {
- s = accept(...);
- mi=1;
- e = setsockopt(s,IPPROTO_TCP,TCP_NODELAY,&mi,sizeof(int));
- }
-
- setsockopt returns -1.
-
- I've seen that they do this in X, so it should be possible...
-
- I would appreciate any ideas you might have.
-
- Knut Rogde
-
-
- --
- ------------------------------------------------------------------------
- Knut Rogde Phone : +47 4 623766
- Software engineer Fax : +47 4 623985
- Kvam data as Email : kro@kvamdata.no
-