Page 1 of 1

ip broadcast setsockopt

Posted: Sat Aug 21, 2004 2:37 am
by DickyDick
In ps2sdk setsockopt is not defined.. or is it?

i want to do this:

setsockopt (socket, SOL_SOCKET, SO_BROADCAST)

Posted: Sat Aug 21, 2004 11:23 am
by Oobles
You will need to look at the ps2ip.h file and see what functions are exported. If you don't find it there, it will be worth looking at the LWIP project and seeing if its available. It's possible the function hasn't been exported from LWIP, or also quite possible that LWIP doesn't support broadcast.

Posted: Sun Aug 22, 2004 7:52 am
by pukko
It's called lwip_setsockopt(), and defined in ps2ip.h

Posted: Tue Aug 24, 2004 6:42 am
by DickyDick
pukko wrote:It's called lwip_setsockopt(), and defined in ps2ip.h
I see it is under the iop/include tree. So does this mean i only have to load the ps2ip.irx in to the iop and call lwip_setsockopt from another iop program? Or ca n call lwip_setsockopt someway from my main EE program?