Well I tried a lot of variations but nothing really worked

sometimes I got a 'crash in...' error, sometimes nothing happend and sometimes the engine just crashed (I guess I f*cked up the memcpy-thing)
heres the code as it is now.
's' starts a server, 'c' starts a client and enter sends the struct.
( and sorry for my stupidity...

)