Im able to get the client and server to communicate, like when a connection is established the client sends a hello server string to the server and the server responds with a hello client message..Now what I need to do is send this structure to the server
Expand|Select|Wrap|Line Numbers
- typedef struct handshake{
- char* version;
- int nonCe;
- char *ciphersuite[];
- }client;
- client clt;
- //and for example ciphersuite is holding one string
- clt.ciphersuite[0] = "TLS_RSA_WITH_RC4_128_MD5";
- clt.version = "tss 2.0"
- n = send(sockfd,&clt,sizeof(client),0); //this works but when i receive it on the server end i am able to properly recover the int the rest of the strings seem like they havent been sent at all...
Any guidance anyone could provide me on this matter would be greatly appreciated
Thanks in advance