No networking for now

This commit is contained in:
2025-11-02 18:31:51 +01:00
parent 0f93aa2a81
commit 9612e7961e
458 changed files with 8 additions and 235056 deletions

View File

@ -1,6 +1,5 @@
#include <ulib.h>
#include "block.h"
#include "tcptest.h"
void main(void) {
if (argslen() == 0) {
@ -12,10 +11,6 @@ void main(void) {
if (string_strcmp(cmd, "block") == 0) {
diagdummy_block();
} else if (string_strcmp(cmd, "tcp-test-server") == 0) {
diagdummy_tcptestserver();
} else if (string_strcmp(cmd, "tcp-test-client") == 0) {
diagdummy_tcptestclient();
} else {
uprintf("diagdummy: unknown cmd %s\n", cmd);
}

View File

@ -1,26 +0,0 @@
#include <stdint.h>
#include <stddef.h>
#include <ulib.h>
#define MAX_CONNS 10
void diagdummy_tcptestserver(void) {
netsock_t netsock = ipc_netsockmake(NETSOCK_IPV4, NETSOCK_TCP);
ipc_netsockbindport(netsock, 1);
ipc_netsocklisten(netsock, MAX_CONNS);
for (;;) {
netsockev_t ev = ipc_netsockpollev(netsock);
if (!IS_NETSOCKEV_READY(ev)) {
schedrelease();
} else {
}
}
ipc_netsockdelete(netsock);
}
void diagdummy_tcptestclient(void) {
/* netsock_t netsock = ipc_netsockmake(NETSOCK_IPV4, NETSOCK_TCP, ); */
}

View File

@ -1,7 +0,0 @@
#ifndef DIAGDUMMY_TCPTEST_H_
#define DIAGDUMMY_TCPTEST_H_
void diagdummy_tcptestserver(void);
void diagdummy_tcptestclient(void);
#endif // DIAGDUMMY_TCPTEST_H_