make send packet method private.