1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
ASC_initializeNetwork(T_ASC_NetworkRole role, int acceptorPort,
int timeout, T_ASC_Network ** network, unsigned long options)
{
const char *mode;
DUL_NETWORKKEY * netkey;
OFCondition cond = DUL_InitializeNetwork(mode, &acceptorPort, timeout, DUL_ORDERBIGENDIAN | options, &netkey);
if (cond.bad()) return cond;
*network = (T_ASC_Network *) malloc(sizeof(T_ASC_Network));
if (*network == NULL) return EC_MemoryExhausted;
(*network)->role = role;
(*network)->acceptorPort = acceptorPort;
(*network)->network = netkey;
return EC_Normal;
} |
Partager