Diff for /np2/win9x/sstp.cpp between versions 1.1 and 1.2

version 1.1, 2003/10/16 17:58:49 version 1.2, 2003/10/21 11:22:05
Line 6 Line 6
   
   
 static  HWND            sstphwnd = NULL;  static  HWND            sstphwnd = NULL;
 static  BOOL            sstpinused = FALSE;  
 static  int                     sstp_stat = SSTP_READY;  static  int                     sstp_stat = SSTP_READY;
 static  SOCKET          hSocket = INVALID_SOCKET;  static  SOCKET          hSocket = INVALID_SOCKET;
 static  WSAData         wsadata;  static  WSAData         wsadata;
Line 37  static HANDLE check_sakura(void) { Line 36  static HANDLE check_sakura(void) {
   
 // ------------------------------------------------------------------ Async...  // ------------------------------------------------------------------ Async...
   
 BOOL sstp_send(char *msg, void *proc) {  BOOL sstp_send(char *msg, void (*proc)(HWND hWnd, char *msg)) {
   
         sockaddr_in     s_in;          sockaddr_in     s_in;
   
Line 78  BOOL sstp_send(char *msg, void *proc) { Line 77  BOOL sstp_send(char *msg, void *proc) {
                 }                  }
         }          }
         sstp_stat = SSTP_SENDING;          sstp_stat = SSTP_SENDING;
         sstpproc = (void (*)(HWND, char *))proc;          sstpproc = proc;
         return(SUCCESS);          return(SUCCESS);
   
 sstp_senderror:;  sstp_senderror:;
Line 107  void sstp_readSocket(void) { Line 106  void sstp_readSocket(void) {
                 int             len;                  int             len;
                 char    buf[256];                  char    buf[256];
                 while(1) {                  while(1) {
                         if (ioctlsocket(hSocket, FIONREAD, &available) != NULL) {                          if (ioctlsocket(hSocket, FIONREAD, &available) != 0) {
                                 break;                                  break;
                         }                          }
                         if (!available) {                          if (!available) {

Removed from v.1.1  
changed lines
  Added in v.1.2


RetroPC.NET-CVS <cvs@retropc.net>