java/src/com/rubyeventmachine/EventableSocketChannel.java in eventmachine-maglev--1.0.0.beta.4 vs java/src/com/rubyeventmachine/EventableSocketChannel.java in eventmachine-maglev--1.0.0.rc.4

- old
+ new

@@ -300,9 +300,15 @@ public Object[] getPeerName () { Socket sock = channel.socket(); return new Object[]{ sock.getPort(), sock.getInetAddress().getHostAddress() }; } + public Object[] getSockName () { + Socket sock = channel.socket(); + return new Object[]{ sock.getLocalPort(), + sock.getLocalAddress().getHostAddress() }; + } + public void setWatchOnly() { bWatchOnly = true; updateEvents(); } public boolean isWatchOnly() { return bWatchOnly; }