getsockopt
int getsockopt(int socket, int level, int option, void *value,
status_t (*getsockopt)(net_protocol* self, int level, int option,
int (*getsockopt)(net_socket* socket, int level, int option,
status_t (*getsockopt)(net_socket* socket, int level, int option,
return protocol->next->module->getsockopt(protocol->next, level, option,
return protocol->next->module->getsockopt(protocol->next, level, option,
return protocol->next->module->getsockopt(protocol->next, level, option,
return protocol->next->module->getsockopt(protocol->next, level, option,
return protocol->next->module->getsockopt(protocol, level, option,
return socket->first_protocol->module->getsockopt(socket->first_protocol,
status_t error = gNetSocketModule.getsockopt(socket, level, option, value,
if (getsockopt(fSocket, SOL_SOCKET, SO_RCVTIMEO, (char *)&oldTimeout, &oldTimeoutLen) >= 0) {
Syscall *getsockopt = get_syscall("_kern_getsockopt");
getsockopt->GetParameter("level")->SetHandler(new EnumTypeHandler(kProtocolLevelMap));
getsockopt->GetParameter("option")->SetHandler(
getsockopt->GetParameter("value")->SetHandler(
getsockopt->GetParameter("value")->SetOut(true);
if (getsockopt(fSocket, SOL_SOCKET, SO_SNDTIMEO, &tv, &size) != 0)
status_t error = sStackInterface->getsockopt(socket, SOL_SOCKET,
return sStackInterface->getsockopt(FD_SOCKET(descriptor), level, option,