Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F8321919
server.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
779 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
Tue, May 13, 16:55 (21 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2563513
Default Alt Text
server.c (779 B)
Attached To
Mode
rDARKBOT Darkbot
Attached
Detach File
Event Timeline
Log In to Comment