mirror of
https://github.com/ksherlock/marignotti.git
synced 2024-12-22 15:29:51 +00:00
26 lines
490 B
C
26 lines
490 B
C
#include "marignotti.h"
|
|
#include <gno/kerntool.h>
|
|
#include <errno.h>
|
|
#include <misctool.h>
|
|
|
|
#pragma noroot
|
|
#pragma optimize 79
|
|
|
|
//
|
|
int mdetach(Entry *e, void *p1, void *p2, void *p3, void *p4, void *p5)
|
|
{
|
|
|
|
// TODO -- SO_LINGER/SO_LINGER_SEC
|
|
LongWord timeout;
|
|
|
|
timeout = 0; // GetTick() + 120 * 60;
|
|
IncBusy();
|
|
TCPIPCloseTCP(e->ipid);
|
|
|
|
e->command = kCommandDisconnectAndLogout;
|
|
e->cookie = 0;
|
|
e->timeout = timeout;
|
|
DecBusy();
|
|
|
|
return 0;
|
|
} |