From 43840c333b08ad974d077443038d228d47088ff3 Mon Sep 17 00:00:00 2001 From: Jeffrin Jojo <135723871+Jeffrin2005@users.noreply.github.com> Date: Fri, 8 Mar 2024 12:29:21 +0530 Subject: [PATCH] Remove INKUDPXX api #6245 --- include/ts/InkAPIPrivateIOCore.h | 73 +++++++------------------------- 1 file changed, 15 insertions(+), 58 deletions(-) diff --git a/include/ts/InkAPIPrivateIOCore.h b/include/ts/InkAPIPrivateIOCore.h index 33007904e77..e8f9afece9a 100644 --- a/include/ts/InkAPIPrivateIOCore.h +++ b/include/ts/InkAPIPrivateIOCore.h @@ -132,61 +132,18 @@ void TSIOBufferBlockDestroy(TSIOBufferBlock blockp); using INKUDPPacket = void *; using INKUDPacketQueue = void *; using INKUDPConn = void *; -/* ===== UDP Connections ===== */ -/**************************************************************************** - * contact: OXYGEN - ****************************************************************************/ -TSAction INKUDPBind(TSCont contp, unsigned int ip, int port); - -/**************************************************************************** - * contact: OXYGEN - ****************************************************************************/ -TSAction INKUDPSendTo(TSCont contp, INKUDPConn udp, unsigned int ip, int port, char *buf, int len); - -/**************************************************************************** - * contact: OXYGEN - ****************************************************************************/ -TSAction INKUDPRecvFrom(TSCont contp, INKUDPConn udp); - -/**************************************************************************** - * Return file descriptor. - * contact: OXYGEN - ****************************************************************************/ -int INKUDPConnFdGet(INKUDPConn udp); - -/* ===== UDP Packet ===== */ -/**************************************************************************** - * contact: OXYGEN - ****************************************************************************/ -INKUDPPacket INKUDPPacketCreate(); - -/**************************************************************************** - * contact: OXYGEN - ****************************************************************************/ -TSIOBufferBlock INKUDPPacketBufferBlockGet(INKUDPPacket packet); - -/**************************************************************************** - * contact: OXYGEN - ****************************************************************************/ -unsigned int INKUDPPacketFromAddressGet(INKUDPPacket packet); - -/**************************************************************************** - * contact: OXYGEN - ****************************************************************************/ -int INKUDPPacketFromPortGet(INKUDPPacket packet); - -/**************************************************************************** - * contact: OXYGEN - ****************************************************************************/ -INKUDPConn INKUDPPacketConnGet(INKUDPPacket packet); - -/**************************************************************************** - * contact: OXYGEN - ****************************************************************************/ -void INKUDPPacketDestroy(INKUDPPacket packet); - -/* ===== Packet Queue ===== */ -/**************************************************************************** - * contact: OXYGEN - ****************************************************************************/ -INKUDPPacket INKUDPPacketGet(INKUDPacketQueue queuep); + +TSAction INKUDPBind_Deprecated(TSCont contp, unsigned int ip, int port) { + Log("INKUDPBind is deprecated, use new TS APIs instead"); +} +TSAction INKUDPSendTo_Deprecated(TSCont contp, INKUDPConn udp, unsigned int ip, int port, char *buf, int len) { + Log("INKUDPSendTo is deprecated, use new TS APIs instead"); +} +TSAction INKUDPRecvFrom_Deprecated(TSCont contp, INKUDPConn udp){ + Log("INKUDPRecvFrom is deprecated, use new TS APIs instead"); +} +INKUDPPacket INKUDPPacketCreate_Deprecated(); +unsigned int INKUDPPacketFromAddressGet_Deprecated(INKUDPPacket packet){ + Log("INKUDPPacketFromAddressGet deprecated"); +INKUDPBind(contp, ip, port); +TSUDPBind(contp, ip, port);