Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
b3e49f8d
Commit
b3e49f8d
authored
Jul 25, 2004
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use VLC networking APIs: close -> net_Close, accept -> net_Accept
parent
78c31cc1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
modules/control/telnet.c
modules/control/telnet.c
+2
-8
No files found.
modules/control/telnet.c
View file @
b3e49f8d
...
...
@@ -57,12 +57,6 @@
#include "vlc_vlm.h"
#if defined( WIN32 ) || defined( UNDER_CE )
#define SOCKET_CLOSE(a) closesocket(a)
#else
#define SOCKET_CLOSE(a) close(a)
#endif
#define READ_MODE_PWD 1
#define READ_MODE_CMD 2
#define WRITE_MODE_PWD 3 // when we write the word "Password:"
...
...
@@ -210,7 +204,7 @@ static void Run( intf_thread_t *p_intf )
int
i
;
/* if a new client wants to communicate */
fd
=
accept
(
p_sys
->
fd
,
NULL
,
NULL
);
fd
=
net_Accept
(
p_intf
,
p_sys
->
fd
,
0
);
if
(
fd
>
0
)
{
telnet_client_t
*
cl
;
...
...
@@ -371,7 +365,7 @@ static void Run( intf_thread_t *p_intf )
!
strncmp
(
cl
->
buffer_read
,
"quit"
,
4
)
||
!
strncmp
(
cl
->
buffer_read
,
"exit"
,
4
)
)
{
c
lose
(
cl
->
fd
);
net_C
lose
(
cl
->
fd
);
TAB_REMOVE
(
p_intf
->
p_sys
->
i_clients
,
p_intf
->
p_sys
->
clients
,
cl
);
free
(
cl
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment