| @@ -0,0 +1,54 @@ | |||||
| package de.uniluebeck.mi.projmi6.view; | |||||
| import ca.uhn.hl7v2.app.HL7Service; | |||||
| // import ca.uhn.hl7v2.app.AcceptorThread.AcceptedSocket; | |||||
| import ca.uhn.hl7v2.concurrent.Service; | |||||
| // import ca.uhn.hl7v2.app; | |||||
| /** | |||||
| * Created by 630030 on 18.11.15. | |||||
| */ | |||||
| //Build a simple TCP/IP based Server | |||||
| // nach diesem beispiel: http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/app/SimpleServer.html | |||||
| // public class MessageListener extends HL7Service { | |||||
| // Socket timeout for server TODO | |||||
| //public static final int SO_TIMEOUT = AcceptorThread.TIMEOUT; | |||||
| /* | |||||
| Create new instance of MessageListener that listens on given port, | |||||
| using the MinLayerProtocol and a standard. TODO | |||||
| */ | |||||
| // public MessageListener(int port){ | |||||
| //} | |||||
| /* | |||||
| Creates a new instance of MessageListener that listens on a given ServerSocket. | |||||
| MessageListener will bind the socket when it is started, so the server socket must not | |||||
| be already bound. TODO | |||||
| */ | |||||
| /* | |||||
| Prepare server by initializing the server socket. TODO | |||||
| */ | |||||
| /* | |||||
| Loop that waits for connection and starts a ConnectionManager when it gets one. TODO | |||||
| */ | |||||
| /* | |||||
| CLose down socket TODO | |||||
| */ | |||||
| /* | |||||
| @Override | |||||
| protected void handle() { | |||||
| } | |||||
| } | |||||
| */ | |||||