nsISocketTransport.GetAddress() method or by inspecting nsISocketTransport.GetHost(), which returns a string representation of the client's IP address, which may be either an IPv4 or an IPv6 address.
nsISupports
Last changed in Gecko 1.7 void onSocketAccepted(in nsIServerSocket aServ, in nsISocketTransport aTransport); |
void onStopListening(in nsIServerSocket aServ, in nsresult aStatus); |
This method is called when a client connection is accepted.
void onSocketAccepted( in nsIServerSocket aServ, in nsISocketTransport aTransport );
aServaTransportThis method is called when the listening socket stops for some reason. The server socket is effectively dead after this notification.
void onStopListening( in nsIServerSocket aServ, in nsresult aStatus );
aServaStatusNS_BINDING_ABORTED.