部分移植pjlib-没有ioqueue,选择抽象和插座抽象API
我想使用PJSIP库在嵌入式系统上实现小型SIP软电话。由于此嵌入式系统不提供Linux或支持POSIX,因此我只想将PJLIB库移植,如下所述( https://www.pjsip.org/porting.htm#moztocid30930 )。可以通过宏停止线程功能,但是我还不确定我必须如何设置此新的传输功能或确切包含在哪里,以便我也可以绕过IOQueue实现和PJLIB套接字抽象。
在我的嵌入式系统(KEIL RTX)上,我可以分配一个UDP套接字并注册在网络事件中调用的回调。我也有一个发送功能,可以用来发送数据包。尽管我已经研究了堆栈,但我找不到一种开始的方法。
有没有人敢于部分移植,可以给我简短的帮助。谢谢 !
I would like to use the PJSIP library to implement a small SIP softphone on an embedded system. Since this embedded system does not offer Linux or support POSIX, I would like to port the PJLIB library only partially, as described here (https://www.pjsip.org/porting.htm#mozTocId30930). The threading function can be deactivated via a macro, but I'm not quite sure yet how I have to set up this new transport function or where exactly it has to be included so that I can also bypass the IOQUEUE implementation and the PJLIB socket abstraction.
On my embedded system (Keil RTX) I can allocate a UDP socket and register a callback which is called on a network event. I also have a send function which I can use to send data packets. Although I have already looked into the stack, I can't find a way to get started.
Has anyone already dared to the partial porting and can give me a brief assistance. Thank you !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看Symbian端口的工作原理(我认为它可以从最近的版本中删除,但仍应下载) - 它也基于非posix插座。创建您自己的平台特定套接字文件和ioqueue文件。
See how Symbian port worked (I think it might be removed from recent versions, but it should be still downloadable) - it was also based on non-POSIX sockets. Create your own platform-specific socket file and ioqueue file.