- Joined
- Apr 18, 2013
- Messages
- 1,768
- Trophies
- 2
- Location
- on the cool side of the pillow
- Website
- follow-the-white-rabbit.wtf
- XP
- 3,017
- Country
Hey folks,
I've been trying to make a TCP server based on instructions provided by the OpenBSD documentation and noexs repo.
Sadly the function socket() always returns -1. errno stays 0.
I thought I might need to enable some extra permissions or something so I checked up the noexs repo and found a JSON configuration there, copied, and adjusted it. Now make gives me the following errors:
I'd be grateful for any help!
I've been trying to make a TCP server based on instructions provided by the OpenBSD documentation and noexs repo.
Sadly the function socket() always returns -1. errno stays 0.
C++:
sockfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if(sockfd < 0)
{
printf("socket creation failed. sockfd = %d\n", sockfd);
printf("errno: %d", errno);
}
I thought I might need to enable some extra permissions or something so I checked up the noexs repo and found a JSON configuration there, copied, and adjusted it. Now make gives me the following errors:
Failed to get system_resource_size (field not present).
Failed to get is_64_bit (field not present).
Failed to parse descriptor json!
I'd be grateful for any help!