Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F53864973
server.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
server.c
View Options
/*
* Copyright (C) 1996 Darkbot Project.
* This program is free software, you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2. This
* program is distributed in the hope that it will be useful, but without
* any warranty, without even the implied warranty of merchantability or
* fitness for a particular purpose. See the COPYING file for details.
*/
#include
"defines.h"
#include
"vars.h"
#include
"prototypes.h"
void
gs26
(
void
)
{
long
i
=
0
;
struct
sl124
*
c
;
c
=
sh124
;
spr
++
;
if
(
spr
>
snr
)
spr
=
1
;
while
(
c
!=
NULL
)
{
i
++
;
if
(
i
==
spr
)
{
strncpy
(
BS
,
c
->
name
,
sizeof
(
BS
));
BP
=
c
->
port
;
strncpy
(
BPASS
,
c
->
pass
,
sizeof
(
BPASS
));
}
c
=
c
->
next
;
}
}
void
add_s25
(
char
*
server
,
long
port
,
char
*
pass
)
{
struct
sl124
*
n
;
n
=
malloc
(
sizeof
(
struct
sl124
));
if
(
n
==
NULL
)
{
db_log
(
"error.log"
,
"AHHH! No ram left! in add_s25!
\n
"
);
return
;
}
memset
(
n
,
0
,
sizeof
(
struct
sl124
));
snr
++
;
if
(
n
!=
NULL
)
{
strncpy
(
n
->
name
,
server
,
sizeof
(
n
->
name
));
n
->
port
=
port
;
if
(
pass
!=
NULL
)
strncpy
(
n
->
pass
,
pass
,
sizeof
(
n
->
pass
));
n
->
next
=
sh124
;
sh124
=
n
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Wed, Oct 14, 20:51 (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4101573
Default Alt Text
server.c (1 KB)
Attached To
Mode
rDARKBOT Darkbot
Attached
Detach File
Event Timeline
Log In to Comment