Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

tcp #9

Open
iambenmitchell opened this issue Jun 1, 2018 · 2 comments
Open

tcp #9

iambenmitchell opened this issue Jun 1, 2018 · 2 comments

Comments

@iambenmitchell
Copy link

hello, i want to run this on tcp instead of udp.

I understand that it is slower but nonetheless i want to do it

i replaced all udp and UDP text in the vpn.c file with tcp or TCP but now on run i get this:

gcc -o vpn vpn.c -g -Wall
vpn.c: In function ‘tcp_bind’:
vpn.c:142:23: error: ‘IPPROTO_tcp’ undeclared (first use in this function)
hints.ai_protocol = IPPROTO_tcp;
^
vpn.c:142:23: note: each undeclared identifier is reported only once for each function it appears in
Makefile:2: recipe for target 'vpn' failed
make: *** [vpn] Error 1

@iambenmitchell
Copy link
Author

I want to use tcp because i cannot figure out how to get the app to pick from a list of ip's (servers)

so instead i have a load balancer that will round robin the servers.

but it only work on tcp

@davlxd
Copy link
Owner

davlxd commented Jun 5, 2018 via email

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

No branches or pull requests

2 participants