change the signature of RawSocket class constructor