PHP socket programming question.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
captjack
Forum Newbie
Posts: 1
Joined: Wed Mar 24, 2010 11:13 am

PHP socket programming question.

Post by captjack »

Hello all,

I am looking for a way in PHP to bind a socket to a device name in Linux (ie. "eth0" or "eth1") . Basically I want the equivalent of the SO_BINDTODEVICE functionality that exists in C for setsockopt function, but after googling for a while I haven't been able to find a suitable answer or equivalent to set_sock_option.

Thanks in advance.
Post Reply