summaryrefslogtreecommitdiff
path: root/src/main/scala/com/tylerstonge/honeypot/http/HttpListener.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/com/tylerstonge/honeypot/http/HttpListener.scala')
-rw-r--r--src/main/scala/com/tylerstonge/honeypot/http/HttpListener.scala27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/main/scala/com/tylerstonge/honeypot/http/HttpListener.scala b/src/main/scala/com/tylerstonge/honeypot/http/HttpListener.scala
deleted file mode 100644
index 8943ee0..0000000
--- a/src/main/scala/com/tylerstonge/honeypot/http/HttpListener.scala
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.tylerstonge.honeypot.http
-
-import java.net.InetSocketAddress
-
-import akka.actor.{Actor, Props}
-import akka.event.Logging
-import akka.io.Tcp._
-import akka.io.{IO, Tcp}
-
-
-class HttpListener extends Actor {
- val log = Logging(context.system, this)
-
- import context.system
-
- IO(Tcp) ! Bind(self, new InetSocketAddress("localhost", 7333))
-
- override def receive: Receive = {
- case b@Bound(localAddress) => context.parent ! b
- case CommandFailed(_: Bind) => context.stop(self)
- case c@Connected(remote, local) =>
- val handler = context.actorOf(Props[SimplisticHandler])
- val connection = sender()
- connection ! Register(handler)
- }
-
-} \ No newline at end of file