Comments (2)
I'm not sure, because none of us have prior experiences on this. And I doubt that its compatibility issues may make it little use in real applications.
Can you describe more about your situation?
from photonlibos.
@mankouzhuya Because the libc API still has its use. Considering you need to write a file in disk or tmpfs, then libc's write is always the feasible way to do it, even we can also use Photon's capsulation of libaio or io_uring.
In a word, networking is a important part, but not all that we concern. We'd best just provide the alternatives, rather then overwrite them.
Photon's basic networking API calls are in net/basic_socket.h
. For instance, photon::net::recv
equals to libc's recv
, and can only work in the coroutine runtime.
from photonlibos.
Related Issues (20)
- It would be great if it supports various clients, such as grpc, redis, mysql.. HOT 5
- - HOT 1
- Thread-per-core Architecture HOT 18
- Windows IOCP backend support HOT 4
- EPOLL: Why not set EPOLLONESHOT in add_interest when ONESHOT is set? HOT 4
- Scalable Stack Discuss HOT 4
- Clarification on Lock and Synchronization HOT 19
- build with curl 8.2.1 failed, some macros are deprecated.
- Unit test with lockfree queue `PhotonLockfreeBatchMPMCQueue+Batch` reported mismatch. HOT 1
- Example for RDMA HOT 2
- TLS implementation does not validate certificate chain HOT 2
- Support customized UserAgent in Http HOT 1
- examples/perf/io-perf fails with segmentation fault with io-uring: HOT 1
- Reducing default stack size from 8 MB to 8 KB - is it possible? HOT 3
- Can main thread be vCPU? Or we must new std::thread as vCPU? HOT 2
- io_uring master_event_engine wait_and_fire_events can't wake up, leading to lock cost long time HOT 3
- When specifying the event engine as io_uring, Photon Env will fail to initialize. The error occurred on line 115 of iouring-wrapper.cpp HOT 3
- io-perf not working HOT 3
- usleep will probably miss the sleep? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photonlibos.