Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SteelT
SRB2
Commits
e4f0fa46
Commit
e4f0fa46
authored
5 years ago
by
James R.
Browse files
Options
Downloads
Patches
Plain Diff
Dumbass NONET stuff...
parent
619efb3d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mserv.c
+9
-6
9 additions, 6 deletions
src/mserv.c
with
9 additions
and
6 deletions
src/mserv.c
+
9
−
6
View file @
e4f0fa46
...
...
@@ -323,13 +323,9 @@ static INT32 GetServersList(void)
//
// MS_Connect()
//
#ifndef NONET
static
INT32
MS_SubConnect
(
const
char
*
ip_addr
,
const
char
*
str_port
,
INT32
async
,
struct
sockaddr
*
bindaddr
,
socklen_t
bindaddrlen
)
{
#ifdef NONET
(
void
)
ip_addr
;
(
void
)
str_port
;
(
void
)
async
;
#else
struct
my_addrinfo
*
ai
,
*
runp
,
hints
;
int
gaie
;
...
...
@@ -402,12 +398,18 @@ static INT32 MS_SubConnect(const char *ip_addr, const char *str_port, INT32 asyn
runp
=
runp
->
ai_next
;
}
I_freeaddrinfo
(
ai
);
#endif
return
MS_CONNECT_ERROR
;
}
#endif
/*NONET xd*/
static
INT32
MS_Connect
(
const
char
*
ip_addr
,
const
char
*
str_port
,
INT32
async
)
{
#ifdef NONET
(
void
)
ip_addr
;
(
void
)
str_port
;
(
void
)
async
;
return
MS_CONNECT_ERROR
;
#else
const
char
*
lhost
;
struct
my_addrinfo
hints
;
struct
my_addrinfo
*
ai
,
*
aip
;
...
...
@@ -443,6 +445,7 @@ static INT32 MS_Connect(const char *ip_addr, const char *str_port, INT32 async)
}
else
return
MS_SubConnect
(
ip_addr
,
str_port
,
async
,
0
,
0
);
#endif
/*NONET xd*/
}
#define NUM_LIST_SERVER MAXSERVERLIST
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment