New upstream version 8.1.0

This commit is contained in:
geos_one
2025-08-10 01:34:16 +02:00
commit c891bb7105
4398 changed files with 838833 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#include <common/toolkit/SocketTk.h>
#include <common/net/sock/Socket.h>
#include <common/threading/Thread.h>
#include <linux/in.h>
void _Socket_init(Socket* this)
{
memset(this, 0, sizeof(*this) );
this->sockType = NICADDRTYPE_STANDARD;
this->boundPort = -1;
}
void _Socket_uninit(Socket* this)
{
}
bool Socket_bind(Socket* this, unsigned short port)
{
struct in_addr ipAddr = { INADDR_ANY };
return this->ops->bindToAddr(this, ipAddr, port);
}
bool Socket_bindToAddr(Socket* this, struct in_addr ipAddr, unsigned short port)
{
return this->ops->bindToAddr(this, ipAddr, port);
}