|
@@ -7,6 +7,7 @@ import java.net.ServerSocket;
|
|
import java.net.Socket;
|
|
import java.net.Socket;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
+import de.tudarmstadt.informatik.hostage.net.MyServerSocketFactory;
|
|
import de.tudarmstadt.informatik.hostage.nio.Reader;
|
|
import de.tudarmstadt.informatik.hostage.nio.Reader;
|
|
import de.tudarmstadt.informatik.hostage.nio.Writer;
|
|
import de.tudarmstadt.informatik.hostage.nio.Writer;
|
|
import de.tudarmstadt.informatik.hostage.protocol.Protocol.TALK_FIRST;
|
|
import de.tudarmstadt.informatik.hostage.protocol.Protocol.TALK_FIRST;
|
|
@@ -30,7 +31,8 @@ public class NBSS extends Thread {
|
|
public void run() {
|
|
public void run() {
|
|
try {
|
|
try {
|
|
nbssPort = 139;
|
|
nbssPort = 139;
|
|
- nbssServer = new ServerSocket(nbssPort);
|
|
|
|
|
|
+ MyServerSocketFactory factory = new MyServerSocketFactory();
|
|
|
|
+ nbssServer = factory.createServerSocket(nbssPort);
|
|
nbssSocket = nbssServer.accept();
|
|
nbssSocket = nbssServer.accept();
|
|
smb = new SMB();
|
|
smb = new SMB();
|
|
talkToClient(nbssSocket.getInputStream(), nbssSocket.getOutputStream());
|
|
talkToClient(nbssSocket.getInputStream(), nbssSocket.getOutputStream());
|