Missed out the main desktop action class.

Couple of other minor changes, remove version id from NetBIOS name server, use global port for host announcer to allow redirection.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3516 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2006-08-15 14:15:20 +00:00
parent 3aec8d576c
commit 8980c9f069
3 changed files with 560 additions and 13 deletions

View File

@@ -46,7 +46,6 @@ public class TcpipNetBIOSHostAnnouncer extends HostAnnouncer
// Broadcast address and port
private InetAddress m_bcastAddr;
private int m_bcastPort = RFCNetBIOSProtocol.DATAGRAM;
// NetBIOS datagram
@@ -140,7 +139,7 @@ public class TcpipNetBIOSHostAnnouncer extends HostAnnouncer
public final void setBroadcastAddress(String addr, int port) throws UnknownHostException
{
m_bcastAddr = InetAddress.getByName(addr);
m_bcastPort = port;
m_port = port;
}
/**
@@ -201,12 +200,12 @@ public class TcpipNetBIOSHostAnnouncer extends HostAnnouncer
// DEBUG
if ( logger.isDebugEnabled())
logger.debug("Send NetBIOS host announcement to " + m_bcastAddr.getHostAddress() + ", port " + m_bcastPort);
logger.debug("Send NetBIOS host announcement to " + m_bcastAddr.getHostAddress() + ", port " + getPort());
// Send the host announce datagram
m_nbdgram.SendDatagram(NetBIOSDatagram.DIRECT_GROUP, hostName, NetBIOSName.FileServer, getDomain(),
NetBIOSName.MasterBrowser, buf, len, offset, m_bcastAddr, m_bcastPort);
NetBIOSName.MasterBrowser, buf, len, offset, m_bcastAddr, getPort());
}
/**