Changeset 14321 for trunk/Cosy/tcpip


Ignore:
Timestamp:
08/07/12 09:47:52 (12 years ago)
Author:
tbretz
Message:
Added the kNoDelay option to ensure that packets are not split.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosy/tcpip/MTcpIpIO.cc

    r12598 r14321  
    5050    gDebug=save;
    5151    fTxSocket->SetOption(kNoBlock, 1);
     52    fTxSocket->SetOption(kNodelay, 1);
    5253
    5354    MTcpIpO::RunThread();
     
    185186        fTxSocket = new TSocket(a.GetHostAddress(), fPortTx);
    186187        fTxSocket->SetOption(kNoBlock, 1);
     188        fTxSocket->SetOption(kNodelay, 1);
    187189
    188190        fMutex.UnLock();
     
    265267        fTxSocket = new TSocket(a.GetHostAddress(), fPortTx);
    266268        fTxSocket->SetOption(kNoBlock, 1);
     269        fTxSocket->SetOption(kNoDelay, 1);
    267270
    268271        fMutex.UnLock();
     
    442445        TServerSocket *server=new TServerSocket(fPortRx, kTRUE, 0);
    443446        server->SetOption(kNoBlock, 1);
     447        server->SetOption(kNoDelay, 1);
    444448
    445449        while (!IsThreadCanceled() && server->IsValid())
Note: See TracChangeset for help on using the changeset viewer.