Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement socket interface #85

Open
sebastianene07 opened this issue Jan 7, 2021 · 0 comments
Open

Implement socket interface #85

sebastianene07 opened this issue Jan 7, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@sebastianene07
Copy link
Owner

Describe the solution you'd like
Applications should be able to create a socket, bind to it and exchange data on it.
Implement the following API that will be exposed at the application layer:

     int socket(int domain, int type, int protocol); /* open a new communication endpoint and specified the desired interface */
     int bind(int socket, const struct sockaddr *address, socklen_t address_len); /* assign an address to our communication endpoint */
     ssize_t recv(int socket, void *buffer, size_t length, int flags);
     ssize_t send(int socket, const void *buffer, size_t length, int flags);

The initial implementation of the API should support conectionless operations. To test the API, a server & client app should be implemented that echos data back & forth using the local domain.

@sebastianene07 sebastianene07 added the enhancement New feature or request label Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant