Hacking Homebrew Misc How do I create a TCP server?

  • Thread starter Thread starter LawnMeower
  • Start date Start date
  • Views Views 843
  • Replies Replies 0

LawnMeower

Well-Known Member
Member
Joined
Apr 18, 2013
Messages
1,787
Reaction score
1,763
Trophies
2
Location
on the cool side of the pillow
Website
lawnmeower.de
XP
3,268
Country
Germany
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.
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!
 

Site & Scene News

Popular threads in this forum