TCPで
typedef struct
{
int option;
char msg[8];
int login;
} message;

message msgStruct;

msgStruct.option = htonl(option);
gets(msgStruct.msg);
msgStruct.login = htonl(login);

send(s, &msgStruct, sizeof(msgStruct), 0);
のようにして構造体で送った値を
サーバー側で抽出、というか表示してやるにはどうすればいいですか?
intのはntohl()で戻してやる必要がある、とは書かれてるんですが
実際にどうやるのかは書かれていません。
教えて下さい。