- socket_send( s, (char*)request_type, request_size );
- socket_send( s, &buf_size, 4 );
- socket_send( s, (char*)send_buf, buf_size );
+ if(send( s, (char*)request_type, request_size, 0 ) < 0) {
+ ERR("failed to send to emuld\n");
+ }
+ if(send( s, &buf_size, 4, 0 ) < 0) {
+ ERR("failed to send to emuld\n");
+ }
+ if(send( s, (char*)send_buf, buf_size, 0 ) < 0) {
+ ERR("failed to send to emuld\n");
+ }