Witam!

Ostatnio siedzę nad protokołem gg, zatrzymałem się przy wysyłaniu i odbieraniu wiadomości, wysyłam jakąś wiadomość i odbieram w orginalnym kliencie no ale zamiast tego co wysłałem dochodzi coś dziwnego np XA ĆĄ...
Kod:
#define GG_SEND_MSG80 0x002d

	struct gg_send_msg80 {
		int recipient;		/* numer odbiorcy */
		int seq;		/* numer sekwencyjny */
		int classs;		/* klasa wiadomoťci */
		int offset_plain;	/* po│o┐enie treťci czystym tekstem */
		int offset_attributes;	/* po│o┐enie atrybutˇw */
		char html_message[200];	/* treťŠ w formacie HTML (zako˝czona \0) */
		char plain_message[200];	/* treťŠ czystym tekstem (zako˝czona \0) */
		char attributes;	/* atrybuty wiadomoťci */
	}mmss;

	mmss.recipient = 2357907;		/* numer odbiorcy */
	mmss.seq=rand() % 65000;		/* numer sekwencyjny */
	//mmss.classs=0x0008;		/* klasa wiadomoťci */
	mmss.classs=0x0020;		/* klasa wiadomoťci */
	mmss.offset_plain=0;	/* po│o┐enie treťci czystym tekstem */
	mmss.offset_attributes=0;	/* po│o┐enie atrybutˇw */
	strcpy(mmss.html_message, "\0");
	strcpy(mmss.plain_message, "elo\0");
	mmss.attributes = 0x00;	/* atrybuty wiadomoťci */
	
	header.type=GG_SEND_MSG80;
	header.length=sizeof(mmss);
	send(sockd, (char*)&header, sizeof(header),0); 

	if(send(sockd, (char*)&mmss, header.length,0 ))
	{
		clear(&header);
		printf("Wyslano\n");
	}
Wydaje mi się że coś jest ze strukturą, źle ją wypełniam albo co... Tylko nie wiem co...