Roughed out config and write methods for socket library