mirror of
https://github.com/ksherlock/marignotti.git
synced 2024-12-13 01:30:43 +00:00
udp connect -- just set the destination port & address.
This commit is contained in:
parent
750f8ab0e5
commit
39fbb1a191
11
mconnect.c
11
mconnect.c
@ -1,6 +1,8 @@
|
||||
#include "marignotti.h"
|
||||
#include <gno/kerntool.h>
|
||||
#include <errno.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include <misctool.h>
|
||||
|
||||
#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);
|
||||
|
Loading…
Reference in New Issue
Block a user