/[rdesktop]/jpeg/rdesktop/trunk/tcp.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /jpeg/rdesktop/trunk/tcp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1309 by stargo, Wed Nov 1 20:52:01 2006 UTC revision 1328 by stargo, Fri Nov 3 23:51:35 2006 UTC
# Line 46  tcp_init(uint32 maxlen) Line 46  tcp_init(uint32 maxlen)
46          STREAM result = NULL;          STREAM result = NULL;
47    
48  #ifdef WITH_SCARD  #ifdef WITH_SCARD
49          scard_tcp_lock();          scard_lock(SCARD_LOCK_TCP);
50          result = scard_tcp_init();          result = scard_tcp_init();
51  #else  #else
52          result = &out;          result = &out;
# Line 61  tcp_init(uint32 maxlen) Line 61  tcp_init(uint32 maxlen)
61          result->p = result->data;          result->p = result->data;
62          result->end = result->data + result->size;          result->end = result->data + result->size;
63  #ifdef WITH_SCARD  #ifdef WITH_SCARD
64          scard_tcp_unlock();          scard_unlock(SCARD_LOCK_TCP);
65  #endif  #endif
66          return result;          return result;
67  }  }
# Line 74  tcp_send(STREAM s) Line 74  tcp_send(STREAM s)
74          int sent, total = 0;          int sent, total = 0;
75    
76  #ifdef WITH_SCARD  #ifdef WITH_SCARD
77          scard_tcp_lock();          scard_lock(SCARD_LOCK_TCP);
78  #endif  #endif
79          while (total < length)          while (total < length)
80          {          {
# Line 88  tcp_send(STREAM s) Line 88  tcp_send(STREAM s)
88                  total += sent;                  total += sent;
89          }          }
90  #ifdef WITH_SCARD  #ifdef WITH_SCARD
91          scard_tcp_unlock();          scard_unlock(SCARD_LOCK_TCP);
92  #endif  #endif
93  }  }
94    

Legend:
Removed from v.1309  
changed lines
  Added in v.1328

  ViewVC Help
Powered by ViewVC 1.1.26