tcp_listen() function for more than 1remote host but not all


i have an application that listens to only one remote host
for example
but now i want to listen to 0.1 and the 0.2 but to nobody else
how do i do this,
in the manual i found it only for one remote host, can i implement this in the function tcp_listen of do i need something else??
plz help
any hits are welcome
thxx muk