I want to connect to a game server.
Blocked in the header portion.
help me t.t
ex) php code
$obj = new stdClass;
$obj->variable1 = 202;
$obj->variable2 = 123;
$str = json_encode($obj);
$header = "\x0a\xFF\x00\x10".pack("s",strlen($str)).$str;
.....
fwrite($sock, $header);
how to convert to c# code pack("s",strlen($str))
and $str
that json-type.