Ping: CreateAndConfigICMP: kEINVALErr
Ping: CreateAndConfigICMP: kEINVALErr
- Subject: Ping: CreateAndConfigICMP: kEINVALErr
- From: Jens Bauer <email@hidden>
- Date: Sun, 10 Feb 2002 01:07:56 +0100
Hi,
Whenever I call the code below, I get a kEINVALErr returned (-3221):
"#-3221 = kEINVALErr: You attempted an invalid operation, or you passed
an invalid parameter."
static OSStatus CreateAndConfigICMP(EndpointRef *outEndpoint)
{
OSStatus err;
*outEndpoint = OTOpenEndpoint(OTCreateConfiguration(kRawIPName), 0,
NULL, &err);
if(kOTNoError == err)
{
err = OTBind(*outEndpoint, NULL, NULL);
}
return(err);
}
My code is an XTra for MacroMedia Director, which means it's in a shared
library.
Does anyone know why this error-code is returned to me ?
Unfortunately I couldn't isolate the bug, to find out if it's the
OTOpenEndpoint or OTBind that fails, if needed, I will try this monday.
Love,
Jens
--
Jens Bauer, Faster Software.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.