[Gambas-user] Multiple TCP server sockets

Benoît Minisini gambas at ...1...
Tue Dec 28 16:38:30 CET 2010


> >  > 
> >  > That is not the issue, you can do that, but they all use the same
> >  > socket_read sub. Or I my missing something here?
> > 
> > Hem, you are right, I didn't notice.
> > 
> >  Internallly the Socket object knows which ServerSocket created it, but
> >  you don't have any access to it!
> >  
> >  As a workaround, I think you can use the port number to make the
> >  difference.
> 
> I will look into that in the meantime.
> 
> >  Maybe I will make a "Server" property in the Socket class to get the
> >  ServerSocket object creator.
> >  
> >  And I can add an optional argument to the Accep() method to define the
> >  event name of the created socket.
> 
> That would be great! Thanks.
> 
> Regards,
> Joe1962
> 

The Socket.Server property has been implemented in revision #3403.

Regards,

-- 
Benoît Minisini




More information about the User mailing list