Added option parameter for buffered file sockets