Got server to work with ptheading, doesn't deal with shared memory yet