ip broadcast setsockopt

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
DickyDick
Posts: 29
Joined: Sat Aug 21, 2004 2:28 am

ip broadcast setsockopt

Post by DickyDick »

In ps2sdk setsockopt is not defined.. or is it?

i want to do this:

setsockopt (socket, SOL_SOCKET, SO_BROADCAST)
Oobles
Site Admin
Posts: 347
Joined: Sat Jan 17, 2004 9:49 am
Location: Melbourne, Australia
Contact:

Post 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.
pukko
Posts: 17
Joined: Sat Jan 17, 2004 10:13 pm

Post by pukko »

It's called lwip_setsockopt(), and defined in ps2ip.h
DickyDick
Posts: 29
Joined: Sat Aug 21, 2004 2:28 am

Post 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?
Post Reply