Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 1502 → Rev 1501

/pkgnet/trunk/net.c
1,6 → 1,6
/*
* This file is part of the pkgnet package - the SvarDOS package manager.
* Copyright (C) Mateusz Viste 2013-2023
* Copyright (C) Mateusz Viste 2013-2022
*
* Provides all network functions used by pkgnet, wrapped around the
* Watt-32 TCP/IP stack.
126,11 → 126,6
}
 
 
void net_shut(void) {
sock_exit();
}
 
 
const char *net_engine(void) {
return(wattcpVersion());
}
/pkgnet/trunk/net.h
1,6 → 1,6
/*
* This file is part of the pkgnet package - the SvarDOS package manager.
* Copyright (C) Mateusz Viste 2013-2023
* Copyright (C) Mateusz Viste 2013-2022
*/
 
 
39,9 → 39,6
/* Close the 'sock' socket. */
void net_close(struct net_tcpsocket *socket);
 
/* network subsystem deinitialization */
void net_shut(void);
 
/* Returns an info string about the networking engine being used */
const char *net_engine(void);
 
/pkgnet/trunk/pkgnet.c
397,9 → 397,6
ALLGOOD:
if (fd != NULL) fclose(fd);
net_close(sock);
 
net_shut();
 
return(flen);
}
 
427,6 → 424,7
} *mem;
 
 
puts("SvarLANG autoload...");
svarlang_autoload_exepath(argv[0], getenv("LANG"));
 
/* look for PKGNETBUFSZ env var to size up the buffer (default=5000 bytes) */