aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ZigGeneratedClasses.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/bindings/ZigGeneratedClasses.cpp')
-rw-r--r--src/bun.js/bindings/ZigGeneratedClasses.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bun.js/bindings/ZigGeneratedClasses.cpp b/src/bun.js/bindings/ZigGeneratedClasses.cpp
index 5618245cf..926bca81c 100644
--- a/src/bun.js/bindings/ZigGeneratedClasses.cpp
+++ b/src/bun.js/bindings/ZigGeneratedClasses.cpp
@@ -488,6 +488,12 @@ extern "C" EncodedJSValue TCPSocket__getConstructor(Zig::GlobalObject* globalObj
return JSValue::encode(globalObject->JSTCPSocketConstructor());
}
+extern "C" bool TCPSocket__hasPendingActivity(void* ptr);
+bool JSTCPSocket::internalHasPendingActivity()
+{
+ return TCPSocket__hasPendingActivity(m_ctx);
+}
+
JSTCPSocket::~JSTCPSocket()
{
if (m_ctx) {
@@ -1033,6 +1039,12 @@ extern "C" EncodedJSValue TLSSocket__getConstructor(Zig::GlobalObject* globalObj
return JSValue::encode(globalObject->JSTLSSocketConstructor());
}
+extern "C" bool TLSSocket__hasPendingActivity(void* ptr);
+bool JSTLSSocket::internalHasPendingActivity()
+{
+ return TLSSocket__hasPendingActivity(m_ctx);
+}
+
JSTLSSocket::~JSTLSSocket()
{
if (m_ctx) {