mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user