mtcp-stack / mtcp

mTCP: A Highly Scalable User-level TCP Stack for Multicore Systems
Other
1.98k stars 436 forks source link

Can Global variables used by mTCP be encapsulated using the get function if the application gets them? #230

Open fantastic2085 opened 5 years ago

ajamshed commented 5 years ago

@fantastic2085,

All variables that may be needed by the application are already exposed to the application via functions declared in mtcp_api.h file (e.g. mtcp_getsockopt()). Is there any variable that you have in mind that currently is not exposed to the user? We try to emulate the same interface as BSD socket API exports. And we don't want to overly expose the internal data structures to the user.