Hacking Homebrew Misc How do I create a TCP server?

CosmoCortney

i snack raw pasta and chew lollipops
OP
Member
Joined
Apr 18, 2013
Messages
1,767
Trophies
1
Location
on the cool side of the pillow
Website
follow-the-white-rabbit.wtf
XP
2,947
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!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • AliceCE @ AliceCE:
    and screwed up a little less but still pretty damn bad instead
    Gift
  • AliceCE @ AliceCE:
    i bent pins on the cpu socket bay and my cpu was wigging out
    Gift
  • AliceCE @ AliceCE:
    luckily i was able to unbend the bastards and get my pc booting again
    Gift
  • AliceCE @ AliceCE:
    i will never forget that horrible, 800hz 4 - 2 - 1 beep
    code
    Gift
  • AliceCE @ AliceCE:
    eeeeyikes
    Gift
  • AliceCE @ AliceCE:
    on the flip side, i was able to give the dingus machine that i nearly screwed the cpu up on a solid state drive
    Gift
  • AliceCE @ AliceCE:
    and i cleverly got the idea to move the pagefile to it
    Gift
  • AliceCE @ AliceCE:
    i think my ram's slower than that solid state drive, jesus christ
    Gift
  • AliceCE @ AliceCE:
    it seems like the pc chugs, then gets exponentially faster after what i can only assume is the pc running out of physsey
    ram
    Gift
  • AliceCE @ AliceCE:
    whereas before it just chugged no matter what
    Gift
  • AliceCE @ AliceCE:
    slow pagefile, slow ram, now the pagefile's leaving poor phrammy in the dust
    Gift
  • AliceCE @ AliceCE:
    and all this on a dingus windows 7 pc with no graphics card, of all things
    Gift
  • AliceCE @ AliceCE:
    an optiplex 755 MT
    Gift
  • DinohScene @ DinohScene:
    I deal with bent CPU pins on a almost daily basis...
    Gift
  • Digitalcat @ Digitalcat:
    bent cpu pins are my fav, love unbending them and then bending even more by accident.
    Gift
  • Digitalcat @ Digitalcat:
    Hate how they are getting thinner and thinner.
    Gift
  • Veho @ Veho:
    Didn't they invent those nubs and contacts a while ago so we wouldn't have to deal with a million pins when plugging in a CPU?
    Gift
  • Veho @ Veho:
    What happened to that?
    Gift
  • DinohScene @ DinohScene:
    I think Intel still uses LGA?
    Gift
  • DinohScene @ DinohScene:
    not to well known with the newer CPUs
    Gift
  • AliceCE @ AliceCE:
    optiplicks
    Gift
  • Psionic Roshambo @ Psionic Roshambo:
    New AMD is still on pins Intel went LGA but rumor is they are swapping with AMD going LGA and Intel maybe going back to pins
    Gift
  • AncientBoi @ AncientBoi:
    [turns it all into USB-B] Problem Fixed
    Gift
  • AliceCE @ AliceCE:
    CPU but awesome
    Gift
  • AncientBoi @ AncientBoi:
    CPU's? But I'm still working on EMP's
    Gift
    AncientBoi @ AncientBoi: CPU's? But I'm still working on EMP's