BurstFS_Server/burstfs_sock.c
int sock_notify_cli(int sock_id, int cmd) {
	memcpy(ack_buf[sock_id], &cmd, sizeof(int));
	int rc = write(poll_set[sock_id].fd,\
		 ack_buf[sock_id], sizeof(ack_buf[sock_id]));

	if (rc < 0)
		return ULFS_ERROR_WRITE;
	return ULFS_SUCCESS;
}
/*
 * send command to the client to let the client digest the
 * data in the shared receive buffer
 * @param: sock_id: socket index in poll_set
 * @param: cmd: command type
 *
 * */
send command to the client to let the client digest the
data in the shared receive buffer
@param: sock_id: socket index in poll_set
@param: cmd: command type
send command to the client to let the client digest the data in the shared receive buffer @param : sock_id : socket index in poll_set @param : cmd : command type
int sock_notify_cli(int sock_id, int cmd) {
	memcpy(ack_buf[sock_id], &cmd, sizeof(int));
	int rc = write(poll_set[sock_id].fd,\
		 ack_buf[sock_id], sizeof(ack_buf[sock_id]));
	if (rc < 0)
		return ULFS_ERROR_WRITE;
	return ULFS_SUCCESS;
}
int sock_notify_cli ( int sock_id , int cmd ) { memcpy ( ack_buf [ sock_id ] , & cmd , sizeof ( int ) ) ; int rc = write ( poll_set [ sock_id ] . fd , ack_buf [ sock_id ] , sizeof ( ack_buf [ sock_id ] ) ) ; if ( rc < 0 ) return ULFS_ERROR_WRITE ; return ULFS_SUCCESS ; }
send command to the client to let the client digest the
 data in the shared receive buffer
 @param: sock_id: socket index in poll_set
 @param: cmd: command type
send command to the client to let the client digest the data in the shared receive buffer @param : sock_id : socket index in poll_set @param : cmd : command type