Hi Steve,
I know its pretty easy from C, the question is whether it is easy
from Unicon, or whether we need to add a little something here.
For example, is the hostname or IP you connected to stored in the
"filename" field and therefore obtainable using image(net) or whatever?
Somehow I bet that's wishful thinking. Or stat() could include peer IP
info in a field; I don't know whether it does. Anyhow, thanks for your
implementation suggestion, someone may need to code it up.
CJ> I was hoping Shamim would know how the server checks the client's IP#.
SL> I thought maybe I was confused. Unless I'm missing something, both
SL> accept(2) and recvfrom(2) fill a sockaddr with the address of the
SL> sender. If you are using a connection-oriented protocol you can also
SL> use getpeername(2) any time to get a sockaddr for the other side.
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group