home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / protocol / tcpip / 5143 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.3 KB

  1. Xref: sparky comp.protocols.tcp-ip:5143 comp.os.os2.networking:2115 comp.os.os2.programmer:6372
  2. Newsgroups: comp.protocols.tcp-ip,comp.os.os2.networking,comp.os.os2.programmer
  3. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!alf.uib.no!hsr.no!fics!kro
  4. From: kro@kvamdata.no (Knut Rogde)
  5. Subject: TCP_NODELAY after accept()
  6. Organization: Kvam data as
  7. Date: Thu, 12 Nov 1992 15:39:29 GMT
  8. Message-ID: <1992Nov12.153929.18280@kvamdata.no>
  9. Lines: 33
  10.  
  11. Hi,
  12.  
  13. In the process of developing a client server concept based on TCP/IP,
  14. I've come across a problem:
  15.  
  16. I need to set the TCP_NODELAY option (like the X window system does) in
  17. order to get fast query-response.
  18.  
  19. I've managed to set this option on the caller side just after making the
  20. socket() call, but I can't make this work on the callee side.
  21.  
  22. Whent I try to do 
  23.  
  24. {
  25.    s = accept(...);
  26.    mi=1;
  27.    e = setsockopt(s,IPPROTO_TCP,TCP_NODELAY,&mi,sizeof(int));
  28. }
  29.  
  30. setsockopt returns -1.
  31.  
  32. I've seen that they do this in X, so it should be possible...
  33.  
  34. I would appreciate any ideas you might have.
  35.  
  36. Knut Rogde
  37.  
  38.  
  39. -- 
  40. ------------------------------------------------------------------------
  41. Knut Rogde                      Phone : +47 4 623766
  42. Software engineer               Fax   : +47 4 623985
  43. Kvam data as                    Email : kro@kvamdata.no
  44.