make socket independent, it should not to care the packet