Namespace and socket errors?

new topic     » topic index » view thread      » older message » newer message

Ok, this code:

socket connectionSocket = create(AF_INET, SOCK_STREAM*50, 0)

returns -38 and causes a type_check failure where it should return -1 according to documentation?

Also

include std/socket.e 
socket connectionSocket = sockets::create(AF_INET, SOCK_STREAM*50, 0) 

gives an error <0032>:: an identifier is expected here

Am I doing something wrong?

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu