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

hi,

i have an application that listens to only one remote host
for example 192.168.0.1
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