Changeset 274


Ignore:
Timestamp:
10/04/2007 12:35:21 PM (4 years ago)
Author:
agr
Message:

SLIPstream blocking / nonblocking fixed

Location:
nano-RK/tools/SLIPstream/SLIPstream-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nano-RK/tools/SLIPstream/SLIPstream-client/main.c

    r122 r274  
    44#include <slipstream.h> 
    55 
     6#define NONBLOCKING  0 
     7#define BLOCKING     1 
    68 
    79 
     
    1618  } 
    1719 
    18   v=slipstream_open(argv[1],atoi(argv[2]),1); 
     20  v=slipstream_open(argv[1],atoi(argv[2]),NONBLOCKING); 
    1921   
    2022  cnt = 0; 
  • nano-RK/tools/SLIPstream/SLIPstream-client/slipstream.c

    r248 r274  
    2424          } 
    2525 
    26   // make socket non-blocking... 
    27   fcntl (sock, F_SETFL, O_NONBLOCK); 
     26  if(blocking_read==0) 
     27        { 
     28        // make socket non-blocking... 
     29        fcntl (sock, F_SETFL, O_NONBLOCK); 
     30        } 
    2831   
    2932  server.sin_family = AF_INET; 
Note: See TracChangeset for help on using the changeset viewer.