Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F22375877
server.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
773 B
Referenced Files
None
Subscribers
None
server.c
View Options
#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
Fri, Jan 30, 06:18 (4 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3349307
Default Alt Text
server.c (773 B)
Attached To
Mode
rDARKBOT Darkbot
Attached
Detach File
Event Timeline
Log In to Comment