tcp: initial implementation

This commit is contained in:
Matheus
2024-06-03 22:02:58 -03:00
parent 7053ed68af
commit 7cad8f53f2
7 changed files with 1729 additions and 53 deletions
+2 -2
View File
@@ -3,10 +3,10 @@
static socket_t *(*createsocket[])() = {
udp_createsocket,
localsock_createsocket
localsock_createsocket,
tcp_createsocket
};
socket_t *socket_create(int type) {
__assert(type < sizeof(createsocket) / sizeof(createsocket[0]));
socket_t *socket = createsocket[type]();