Commit Graph

30 Commits

Author SHA1 Message Date
sauwming d762276861
Fixed deprecation warnings on Mac and iOS (#3837) 2024-01-22 16:26:23 +08:00
jimying 537958d0a7
activesock: check remaining buffer size to avoid buffer overflow (#3560) 2023-05-16 13:04:50 +08:00
jimying b4921bfcd9
Add close-on-exec flag (#3553) 2023-05-16 11:59:37 +08:00
Riza Sulistyo 90a704b0c6
Change socket assertion check to allow socket handle value 0 (#3500)
* Change socket assertion check to allow socket handle value 0

* Modification based on comments

- Revert changes in sock_qos_symbian.cpp
- Remove check for sock value 0
2023-04-11 09:14:04 +07:00
Riza Sulistyo 5ac9104514
Expand tab to spaces and remove $Id$ (#3292) 2022-11-22 16:26:54 +07:00
Nanang Izzuddin f5900e790d Fix #2055:
- Updated active socket to avoid double ioqueue key unregistration.
- Updated ioqueue to avoid double ioq key unregistration (select & epoll only, winnt & uwp does not seem to be affected).
- Added check for potential 'negative' ioqueue->count.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5680 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-03 06:54:54 +00:00
Sauw Ming 80467f5ebc Fixed #1862: Crash on iOS when destroying an activesock and creating a new one at the same time
Thanks to Itay Bianco for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5119 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-25 08:53:02 +00:00
Sauw Ming 2b79e65eb9 Re #1782 (misc): Fixed activesock's lock msg w.r.t iOS background to be more precise.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5044 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-02 06:44:08 +00:00
Riza Sulistyo 25b575b336 Re #1680: Add initial support for Win64
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4537 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-19 06:47:43 +00:00
Riza Sulistyo bc9c677287 Re #1643: Code restructure+add callback to support symbian gui app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4461 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-05 03:02:19 +00:00
Benny Prijono ac932bb522 Fixed #1616: Implementation of Group lock and other foundation in PJLIB for fixing synchronization issues
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4359 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 11:18:36 +00:00
Nanang Izzuddin a62ffc9d03 Re #1250: Updated the year in all copyright texts with 2011!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3553 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 06:14:19 +00:00
Sauw Ming 3e310ec787 Fix #1145: API to enable/disable support for iOS BG feature during runtime
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3336 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-11 10:59:37 +00:00
Sauw Ming 30132a324b Re #1134: for iOS4, remove unnecessary wrapping of sockets during creation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3317 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-22 13:21:40 +00:00
Sauw Ming 47b77a8918 Fixed #1130
Since the problem may not be iOS4 specific, a general approach is adopted to fix the problem.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3316 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-22 13:11:11 +00:00
Sauw Ming be3771a637 Closed ticket #1107: iOS4 background feature
* pjlib:
  * add support for activesock TCP to work in background mode.
  * add feature in ioqueue to recreate closed UDP sockets.
 * pjsip-apps:
  * ipjsua: add support for iPhone OS 4 background mode
  * ipjsystest: add support for iPhone OS 4 background mode



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3299 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-27 06:46:29 +00:00
Nanang Izzuddin 7369d2255a Ticket #984: Minor fix of compile warning of unused arg.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2980 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-03 12:58:54 +00:00
Nanang Izzuddin 36aa1fb3de Ticket #984: Fixed active socket to pass updated/correct descriptors in invoking accept callback for the application.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2979 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-03 12:44:11 +00:00
Nanang Izzuddin a326fbfba5 Misc fix (#951): Updated active socket to keep passing the packet pointer, instead of NULL, when connection is closed/error and no remainder data, as application, e.g: SSL sock, may need to have access on it.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2969 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-26 14:09:09 +00:00
Benny Prijono 844653c1f2 Updated copyright notice in all files to Teluu Inc., and changed the year as well
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2394 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-23 17:27:53 +00:00
Benny Prijono 7f6ca73fcd More ticket #601: premature connection close with TCP active socket case
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2248 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 20:47:53 +00:00
Benny Prijono 3eb59630e0 Ticket #601: 100% CPU usage when TCP active socket receives ECONNRESET
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2246 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 19:27:23 +00:00
Benny Prijono 758decbfb9 Fixed ticket #603: Crash in ICE with IoCompletionPort ioqueue with the test framework because active socket calls the callback with NULL packet
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2243 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26 17:10:51 +00:00
Benny Prijono bd344ff0ba Added new active socket API's to specify application buffers in start_read() and start_recv() functions
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2187 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-04 09:59:02 +00:00
Benny Prijono 417d6054a7 Initial work for ticket #579: added option to make the active socket sends all the (TCP) data before calling completion callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2185 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-29 20:15:15 +00:00
Benny Prijono 1dd5420a03 Fixed linking errors in pjnath when TCP is disabled in PJLIB
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2177 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-25 10:45:34 +00:00
Benny Prijono 32177c0418 Large changeset to replace all occurences of year 2007 with 2008 in the copyright notice
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2039 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20 22:44:47 +00:00
Benny Prijono ea8e436fe1 More ticket #531: added user_data parameter in activesocket creation API to make it more robust against programming errors
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1986 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 14:12:23 +00:00
Benny Prijono c67f885a66 Fixed Symbian build error caused by active socket addition to pjlib in ticket #531 (thanks Rodrigo Vega)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1962 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-20 08:51:03 +00:00
Benny Prijono 4bac2c1389 Implement ticket #531: active socket abstraction to make ioqueue programming easier
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1953 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-11 18:12:16 +00:00