MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / aros_socketbase_init

Function aros_socketbase_init

src/tw/twinit.cpp:322–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320struct Library* SocketBase = 0;
321
322bool aros_socketbase_init()
323{
324 if (!(SocketBase = OpenLibrary("bsdsocket.library", 4)))
325 {
326 printf("Failed to load socket library");
327 return 0;
328 }
329
330 if (SocketBaseTags(SBTM_SETVAL(SBTC_ERRNOPTR(sizeof(errno))),
331 (IPTR)&errno,
332 SBTM_SETVAL(SBTC_HERRNOLONGPTR),
333 (IPTR)&errno,
334 TAG_DONE))
335 {
336 printf("Failed to init socket library");
337 return 0;
338 }
339 return 1;
340}
341#endif

Callers 1

InitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected