Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 1501 → Rev 1502

/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-2022
* Copyright (C) Mateusz Viste 2013-2023
*
* Provides all network functions used by pkgnet, wrapped around the
* Watt-32 TCP/IP stack.
126,6 → 126,11
}
 
 
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-2022
* Copyright (C) Mateusz Viste 2013-2023
*/
 
 
39,6 → 39,9
/* 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,6 → 397,9
ALLGOOD:
if (fd != NULL) fclose(fd);
net_close(sock);
 
net_shut();
 
return(flen);
}
 
424,7 → 427,6
} *mem;
 
 
puts("SvarLANG autoload...");
svarlang_autoload_exepath(argv[0], getenv("LANG"));
 
/* look for PKGNETBUFSZ env var to size up the buffer (default=5000 bytes) */