Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
canghaiwuhen
OpenXG-RAN
Commits
cf55a513
Commit
cf55a513
authored
Sep 18, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASYNC_IF: peer addresses as const in interface
parent
c19bdb77
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
openair2/UTIL/ASYNC_IF/link_manager.c
openair2/UTIL/ASYNC_IF/link_manager.c
+1
-1
openair2/UTIL/ASYNC_IF/link_manager.h
openair2/UTIL/ASYNC_IF/link_manager.h
+1
-1
openair2/UTIL/ASYNC_IF/socket_link.c
openair2/UTIL/ASYNC_IF/socket_link.c
+3
-3
openair2/UTIL/ASYNC_IF/socket_link.h
openair2/UTIL/ASYNC_IF/socket_link.h
+3
-3
No files found.
openair2/UTIL/ASYNC_IF/link_manager.c
View file @
cf55a513
...
@@ -97,7 +97,7 @@ link_manager_t *create_link_manager(
...
@@ -97,7 +97,7 @@ link_manager_t *create_link_manager(
message_queue_t
*
receive_queue
,
message_queue_t
*
receive_queue
,
socket_link_t
*
link
,
socket_link_t
*
link
,
uint16_t
type
,
uint16_t
type
,
c
har
*
peer_addr
,
c
onst
char
*
peer_addr
,
int
port
)
int
port
)
{
{
link_manager_t
*
ret
=
NULL
;
link_manager_t
*
ret
=
NULL
;
...
...
openair2/UTIL/ASYNC_IF/link_manager.h
View file @
cf55a513
...
@@ -58,7 +58,7 @@ link_manager_t *create_link_manager(
...
@@ -58,7 +58,7 @@ link_manager_t *create_link_manager(
message_queue_t
*
receive_queue
,
message_queue_t
*
receive_queue
,
socket_link_t
*
link
,
socket_link_t
*
link
,
uint16_t
type
,
uint16_t
type
,
c
har
*
peer_addr
,
c
onst
char
*
peer_addr
,
int
port
);
int
port
);
void
destroy_link_manager
(
link_manager_t
*
);
void
destroy_link_manager
(
link_manager_t
*
);
...
...
openair2/UTIL/ASYNC_IF/socket_link.c
View file @
cf55a513
...
@@ -115,7 +115,7 @@ error:
...
@@ -115,7 +115,7 @@ error:
return
NULL
;
return
NULL
;
}
}
socket_link_t
*
new_link_client
(
char
*
server
,
int
port
)
socket_link_t
*
new_link_client
(
c
onst
c
har
*
server
,
int
port
)
{
{
socket_link_t
*
ret
=
NULL
;
socket_link_t
*
ret
=
NULL
;
struct
sockaddr_in
addr
;
struct
sockaddr_in
addr
;
...
@@ -208,7 +208,7 @@ error:
...
@@ -208,7 +208,7 @@ error:
}
}
socket_link_t
*
new_link_udp_client
(
char
*
server
,
int
port
){
socket_link_t
*
new_link_udp_client
(
c
onst
c
har
*
server
,
int
port
){
socket_link_t
*
ret
=
NULL
;
socket_link_t
*
ret
=
NULL
;
ret
=
calloc
(
1
,
sizeof
(
socket_link_t
));
ret
=
calloc
(
1
,
sizeof
(
socket_link_t
));
...
@@ -307,7 +307,7 @@ error:
...
@@ -307,7 +307,7 @@ error:
return
NULL
;
return
NULL
;
}
}
socket_link_t
*
new_link_sctp_client
(
char
*
server
,
int
port
)
socket_link_t
*
new_link_sctp_client
(
c
onst
c
har
*
server
,
int
port
)
{
{
socket_link_t
*
ret
=
NULL
;
socket_link_t
*
ret
=
NULL
;
...
...
openair2/UTIL/ASYNC_IF/socket_link.h
View file @
cf55a513
...
@@ -47,11 +47,11 @@ typedef struct {
...
@@ -47,11 +47,11 @@ typedef struct {
}
socket_link_t
;
}
socket_link_t
;
socket_link_t
*
new_link_server
(
int
port
);
socket_link_t
*
new_link_server
(
int
port
);
socket_link_t
*
new_link_client
(
char
*
server
,
int
port
);
socket_link_t
*
new_link_client
(
c
onst
c
har
*
server
,
int
port
);
socket_link_t
*
new_link_udp_server
(
int
port
);
socket_link_t
*
new_link_udp_server
(
int
port
);
socket_link_t
*
new_link_udp_client
(
char
*
server
,
int
port
);
socket_link_t
*
new_link_udp_client
(
c
onst
c
har
*
server
,
int
port
);
socket_link_t
*
new_link_sctp_server
(
int
port
);
socket_link_t
*
new_link_sctp_server
(
int
port
);
socket_link_t
*
new_link_sctp_client
(
char
*
server
,
int
port
);
socket_link_t
*
new_link_sctp_client
(
c
onst
c
har
*
server
,
int
port
);
int
link_send_packet
(
socket_link_t
*
link
,
void
*
data
,
int
size
,
uint16_t
proto_type
,
char
*
peer_addr
,
int
port
);
int
link_send_packet
(
socket_link_t
*
link
,
void
*
data
,
int
size
,
uint16_t
proto_type
,
char
*
peer_addr
,
int
port
);
int
link_receive_packet
(
socket_link_t
*
link
,
void
**
data
,
int
*
size
,
uint16_t
proto_type
,
char
*
peer_addr
,
int
port
);
int
link_receive_packet
(
socket_link_t
*
link
,
void
**
data
,
int
*
size
,
uint16_t
proto_type
,
char
*
peer_addr
,
int
port
);
int
close_link
(
socket_link_t
*
link
);
int
close_link
(
socket_link_t
*
link
);
...
...
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