-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tcp-chnl: add TCP connection established callback for connect and accept
The commit adds calls the TCP connection callback for clients when they establish a connection i.e. the connection is ready to send and receive data. To simplify things, `CHNL_TCP_ACCEPT_TYPE` is renamed to `CHNL_TCP_ESTABLISHED_TYPE`. The callback type is used for both server's `accept` and client's `connect`. In case of accept, the listening channel descriptor is passed to the callback. In case of connect, the client channel descriptor is passed. Signed-off-by: Jalal Mostafa <[email protected]>
- Loading branch information
1 parent
aeb5b8f
commit 75ba078
Showing
3 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters