open socket in ppapi plugin fail

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

open socket in ppapi plugin fail

Postby benliu » Thu Jun 09, 2016 6:21 pm

Hi guys,
I'm new for CEF development. My project is using ppapi to wrap c++ code to be a plugin which is called by javascript. This project is working on Chrome but not CEF. I always stuck in getting <0 result when I want to get a socketFD in c++ plugin every time, I use the same code, same mac pro, same testing process, but different browser and get different result. How do I fix it, do I need to send any arguments to allow using socket by CEF?

I use command-line and send arguments to run my project on Chrome.

In CEF I send the same arguments in OnBeforeCommandLineProcessing which are "no-sandbox", "test-type", AppendSwitchWithValue("touch-devices", "123"), "ppapi-out-of-process", and AppendSwitchWithValue("register-pepper-plugins", plugin path)

Environment:
CEF version: 3.2704
Laptop: Mac pro OS X 10.11.5
javascript + HTML + CEF + Ppapi Plugin
Webserver is running on my mac.
benliu
Newbie
 
Posts: 1
Joined: Thu Jun 09, 2016 4:22 pm

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 34 guests