Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
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
cpp-libs
libnice
Commits
c70bc9fc
Commit
c70bc9fc
authored
Aug 08, 2014
by
Philip Withnall
Committed by
Olivier Crête
Aug 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pseudotcp: Add pseudo_tcp_socket_is_closed()
New convenience API to check if the socket is in state TCP_CLOSED.
parent
b6550e04
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
agent/pseudotcp.c
agent/pseudotcp.c
+8
-0
agent/pseudotcp.h
agent/pseudotcp.h
+12
-0
docs/reference/libnice/libnice-sections.txt
docs/reference/libnice/libnice-sections.txt
+1
-0
No files found.
agent/pseudotcp.c
View file @
c70bc9fc
...
@@ -1958,3 +1958,11 @@ set_state (PseudoTcpSocket *self, PseudoTcpState new_state)
...
@@ -1958,3 +1958,11 @@ set_state (PseudoTcpSocket *self, PseudoTcpState new_state)
priv
->
state
=
new_state
;
priv
->
state
=
new_state
;
}
}
gboolean
pseudo_tcp_socket_is_closed
(
PseudoTcpSocket
*
self
)
{
PseudoTcpSocketPrivate
*
priv
=
self
->
priv
;
return
(
priv
->
state
==
TCP_CLOSED
);
}
agent/pseudotcp.h
View file @
c70bc9fc
...
@@ -471,6 +471,18 @@ gboolean pseudo_tcp_socket_can_send (PseudoTcpSocket *self);
...
@@ -471,6 +471,18 @@ gboolean pseudo_tcp_socket_can_send (PseudoTcpSocket *self);
*/
*/
gsize
pseudo_tcp_socket_get_available_send_space
(
PseudoTcpSocket
*
self
);
gsize
pseudo_tcp_socket_get_available_send_space
(
PseudoTcpSocket
*
self
);
/**
* pseudo_tcp_socket_is_closed:
* @self: The #PseudoTcpSocket object.
*
* Gets whether the socket is closed, with the shutdown handshake completed,
* and both peers no longer able to read or write data to the connection.
*
* Returns: %TRUE if the socket is closed in both directions, %FALSE otherwise
* Since: UNRELEASED
*/
gboolean
pseudo_tcp_socket_is_closed
(
PseudoTcpSocket
*
self
);
G_END_DECLS
G_END_DECLS
#endif
/* _PSEUDOTCP_H */
#endif
/* _PSEUDOTCP_H */
...
...
docs/reference/libnice/libnice-sections.txt
View file @
c70bc9fc
...
@@ -291,6 +291,7 @@ pseudo_tcp_socket_connect
...
@@ -291,6 +291,7 @@ pseudo_tcp_socket_connect
pseudo_tcp_socket_recv
pseudo_tcp_socket_recv
pseudo_tcp_socket_send
pseudo_tcp_socket_send
pseudo_tcp_socket_close
pseudo_tcp_socket_close
pseudo_tcp_socket_is_closed
pseudo_tcp_socket_get_error
pseudo_tcp_socket_get_error
pseudo_tcp_socket_get_next_clock
pseudo_tcp_socket_get_next_clock
pseudo_tcp_socket_notify_clock
pseudo_tcp_socket_notify_clock
...
...
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