💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩

USEFUL FEATURES NIEMAND HAT VOR:EINE WEBSITE ZU DEPLOYEN!1!!elf I JUST FARTED CAN'T TELL IF AWESOME:OR HORRIBLE RESOURCE WASTE

You are not allowed to view an instance of Image that was placed here.

You are not allowed to view an instance of Image that was placed here.

import struct
import socket

SO_PEERCRED = 17
MAX_REQUEST_SIZE = 100

class Daemon(object):

    addr = '/tmp/foo.sock'
    sock = None

    def __init__(self):

        self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
        self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
        self.sock.bind(self.addr)
        self.sock.listen(0)

    def start(self):

        while True:

            print "Waiting for client."
            (conn, addr) = self.sock.accept()

            while True:

                try:
                    creds = conn.getsockopt(socket.SOL_SOCKET, SO_PEERCRED, struct.calcsize('3i'))
                    print "dem creds: ", creds
                    request = conn.recv(MAX_REQUEST_SIZE)
                    conn.send("I got: %s" % request)

                except socket.error:
                    print "Client disconnected or connection fuckup."
                    break

daemon = Daemon()
daemon.start()
fnord 2017-06-26 18:14:34.552399
fortytwo
Mr. Florb 2017-07-03 13:57:01.462748
Florbutronic!
Frank Nord 2017-07-03 14:03:31.323512
CAN YOU SEE ME NOW!?
Mx. Eye 2017-07-04 00:58:48.048284
I CAN SEE YOU INDEED BUT WHY ARE WE SHOUTING I THINK THIS WAS SUPPOSED TO BE A CIVIL DISCUSSION ALSO YOUR CAT POOPED IN MY SANDALS AND I HAVE A PROBLEM FINDING GOOD ENDINGS FOR MY STATEMENTS
💩💩💩💩💩💩 2017-07-04 01:12:12.453011
💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩
💩💩💩💩💩💩 2017-07-04 01:15:13.455128
💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩
gnorf 2017-08-10 12:29:57.356772
blorb.
💩💩💩💩💩💩 2017-07-04 01:15:35.204092
💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩
sprololo 2017-07-04 01:21:33.009955
fugg :DDD