From 39fbb1a1917ca7f13eb3bbc835c30cf727282254 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sat, 12 May 2012 19:48:06 -0400 Subject: [PATCH] udp connect -- just set the destination port & address. --- mconnect.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mconnect.c b/mconnect.c index 4784bf3..2040161 100644 --- a/mconnect.c +++ b/mconnect.c @@ -1,6 +1,8 @@ #include "marignotti.h" #include #include +#include + #include #include "s16debug.h" @@ -45,6 +47,15 @@ int mconnect(Entry *e, void *p1, void *p2, void *p3, void *p4, void *p5) s.i8[0], s.i8[1], s.i8[2], s.i8[3], port); } + if (e->_TYPE == SOCK_DGRAM) + { + IncBusy(); + TCPIPSetNewDestination(e->ipid, sin->sin_addr, port); + t = _toolErr; + DecBusy(); + return 0; + } + // check if already connected. IncBusy(); terr = TCPIPStatusTCP(e->ipid, &e->sr);