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

Add SO_REUSEPORT #26

Open
mesaglio opened this issue Aug 7, 2024 · 2 comments
Open

Add SO_REUSEPORT #26

mesaglio opened this issue Aug 7, 2024 · 2 comments

Comments

@mesaglio
Copy link
Contributor

mesaglio commented Aug 7, 2024

Add some like this to solve port issues on lab

int iniciar_servidor(void)
{
// Quitar esta línea cuando hayamos terminado de implementar la funcion
	assert(!"no implementado!");

	int socket_servidor;
	...
	uint32_t flag = 1;
	setsockopt(socket_servidor, SOL_SOCKET, SO_REUSEPORT, &flag, sizeof(flag));
	...
@RaniAgus
Copy link
Contributor

RaniAgus commented Aug 7, 2024

@mesaglio
Copy link
Contributor Author

mesaglio commented Aug 7, 2024

To both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants