PHP Class DoraRPC\Packet

Show file Open project: xcl3721/dora-rpc

Public Methods

Method Description
packDecode ( $str )
packEncode ( $data, $type = "tcp" )
packFormat ( $msg = "OK", $code, $data = [] )

Method Details

packDecode() public static method

public static packDecode ( $str )

packEncode() public static method

public static packEncode ( $data, $type = "tcp" )

packFormat() public static method

public static packFormat ( $msg = "OK", $code, $data = [] )